Skip to content

Commit

Permalink
github: split up test steps
Browse files Browse the repository at this point in the history
Splitting up the tests ensures that each step runs in the right directory
without having to rely on more complex shell scripting. That failures get
reported separately is an added bonus.

The simpler `(cd hack/tools && go test ./...)` wasn't supported by Windows.
  • Loading branch information
pohly committed Feb 15, 2022
1 parent a58a994 commit 7dac793
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ jobs:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Test
- name: Test klog
run: |
go get -t -v ./...
go test -v -race ./...
cd hack/tools && go test -v -race ./... && cd ../..
cd examples && go test -v -race ./... && cd ..
- name: Test hack/tools
run: cd hack/tools && go test -v -race ./...
- name: Test examples
run: cd examples && go test -v -race ./...
lint:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 7dac793

Please sign in to comment.