Skip to content

Commit

Permalink
test(gh): Use 2 steps
Browse files Browse the repository at this point in the history
I prefer to split tests and sonar upload
  • Loading branch information
metal3d committed Dec 5, 2024
1 parent 5c93938 commit 23d0afd
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/go-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/upload-artifact@v4
with:
name: tests-results
path: |
coverprofile.out
gotest.json
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
Expand All @@ -25,6 +31,13 @@ jobs:
- name: Launch Test
run: |
go vet ./... && go test -coverprofile=coverprofile.out -json -v ./... > gotest.json
sonar:
runs-on: ubuntu-latest
needs: tests
steps:
- uses: actions/download-artifact@v4
with:
name: tests-results
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
Expand Down

0 comments on commit 23d0afd

Please sign in to comment.