Skip to content

Commit

Permalink
Only run tests in directories with test files.
Browse files Browse the repository at this point in the history
  • Loading branch information
hknutzen committed Oct 1, 2024
1 parent baa6601 commit 57840d5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,14 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- name: Calc coverage
run: go test -coverprofile=c.out ./...
run: |
( cd test; go test -coverpkg ../pkg/... -coverprofile=../c1.out)
( cd cmd/get-netspoc-approve-conf; go test -coverprofile=../c2.out )
( cd cmd/missing-approve; go test -coverprofile=../c3.out )
working-directory: go
- name: Upload coverage
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
file: go/c.out
files: go/c1.out go/c2.out go/c3.out
format: golang

0 comments on commit 57840d5

Please sign in to comment.