Skip to content

Commit

Permalink
Move coverage upload
Browse files Browse the repository at this point in the history
Signed-off-by: John Kjell <[email protected]>
  • Loading branch information
jkjell committed Oct 26, 2023
1 parent 93ef787 commit 2f1e25c
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,6 @@ jobs:
run: test -z $(go fmt ./...)
- name: Install GoKart
run: go install github.com/praetorian-inc/gokart@latest
- name: Coverage Report
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
GO111MODULE=off go get github.com/mattn/goveralls
$(go env GOPATH)/bin/goveralls -coverprofile=profile.cov -service=github

static_analysis:
needs: ready
Expand All @@ -71,6 +65,16 @@ jobs:
attestations: "github"
command: go test -v -coverprofile=profile.cov -covermode=atomic ./...

upload-coverage:
runs-on: ubuntu-latest
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Upload coverage
run: |
GO111MODULE=off go get github.com/mattn/goveralls
$(go env GOPATH)/bin/goveralls -coverprofile=profile.cov -service=github
e2e-tests:
needs: ready
uses: ./.github/workflows/witness.yml
Expand Down

0 comments on commit 2f1e25c

Please sign in to comment.