aboutsummaryrefslogtreecommitdiff
path: root/.github/main.workflow
blob: 81c7f82709bba83048beb84ceae83cd903a3a461 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
workflow "Build" {
  on = "push"
  resolves = ["Deploy to pages"]
}

action "Test" {
  uses = "./.github/action"
  args = "test"
}

action "Coverage" {
  uses = "./.github/action"
  args = "cloverage --junit"
  needs = ["Test"]
}

action "Package" {
  uses = "./.github/action"
  args = "package"
  needs = ["Coverage"]
}

action "Deploy to pages" {
  uses = "JamesIves/github-pages-deploy-action@master"
  env = {
    BRANCH = "gh-pages"
    FOLDER = "public"
  }
  secrets = ["ACCESS_TOKEN"]
  needs = ["Package"]
}