Skip to content

Commit

Permalink
fix badge command
Browse files Browse the repository at this point in the history
  • Loading branch information
James Hutcheon authored and James Hutcheon committed Oct 31, 2023
1 parent 876a1db commit 48883cb
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,12 @@ jobs:
- name: Run Test
run: go test ./src/pkg/interpreter/interpreter_test.go -coverprofile=./cover.out -covermode=atomic -coverpkg=./src/pkg/...

- name: check test coverage
uses: vladopajic/go-test-coverage@v2
- name: Update coverage report
uses: ncruces/go-coverage-report@v0
with:
# Configure action using config file (option 1)
config: ./.testcoverage.yml

# Configure action by specifying input parameters individually (option 2)
profile: cover.out
local-prefix: github.com/hutcho66/glox/src/pkg
threshold-file: 0
threshold-package: 0
threshold-total: 80

git-branch: badges
git-token: ${{ github.ref_name == 'main' && secrets.GITHUB_TOKEN || '' }}
coverage-file: ./cover.out
output-dir: coverage
report: true
chart: true
amend: true
reuse-go: true

0 comments on commit 48883cb

Please sign in to comment.