Skip to content

Commit

Permalink
split tests in CI to own steps
Browse files Browse the repository at this point in the history
  • Loading branch information
verdverm committed Jun 26, 2022
1 parent c5ad8ac commit 7995008
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/default.cue
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,18 @@ common.#Workflow & {
on: ["push"]
jobs: test: {
steps: [ for step in common.#BuildSteps {step}] + [{
name: "Run structural tests"
name: "Run self-gen test"
run: """
hof flow @test/gen ./test.cue
"""
},{
name: "Run render tests"
run: """
hof flow @test/render ./test.cue
"""
},{
name: "Run lib/structural tests"
run: """
hof flow @test/st ./test.cue
"""
}]
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ jobs:
uses: actions/checkout@v2
- name: Build CLI
run: go install ./cmd/hof
- name: Run structural tests
run: |-
hof flow @test/gen ./test.cue
hof flow @test/render ./test.cue
hof flow @test/st ./test.cue
- name: Run self-gen test
run: hof flow @test/gen ./test.cue
- name: Run render tests
run: hof flow @test/render ./test.cue
- name: Run lib/structural tests
run: hof flow @test/st ./test.cue
services: {}

0 comments on commit 7995008

Please sign in to comment.