Skip to content

Commit

Permalink
fix: separate into two steps
Browse files Browse the repository at this point in the history
  • Loading branch information
HashMapsData2Value committed Oct 17, 2024
1 parent 52dbfd5 commit 137b54d
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ on:
jobs:
build:
runs-on: ubuntu-latest
permissions:
pull-requests: write

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -46,10 +44,22 @@ jobs:
- name: Test with the Go CLI
run: go test -v -coverprofile=coverage.txt ./...

- name: Upload coverage report
- name: Archive code coverage results
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: coverage.out
name: code-coverage
path: coverage.txt

code_coverage:
name: "Code coverage report"
runs-on: ubuntu-latest
needs: build
permissions:
contents: read
actions: read
pull-requests: write
steps:
- uses: fgrosse/[email protected]
with:
coverage-artifact-name: "code-coverage"
coverage-file-name: "coverage.txt"

0 comments on commit 137b54d

Please sign in to comment.