Skip to content

Commit

Permalink
Update go.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Andrés Reyes el Programador Pobre <[email protected]>
  • Loading branch information
profe-ajedrez authored Nov 4, 2024
1 parent b4f7b06 commit 9dc2b48
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,25 +46,6 @@ jobs:
run: |
go test -v ./... -coverprofile coverage.out -coverpkg ./...
go tool cover -func coverage.out -o coverage.out # Replaces coverage.out with the analysis of coverage.out
- name: Go Coverage Badge
uses: tj-actions/coverage-badge-go@v1
if: ${{ runner.os == 'Linux' }} # Runs this on only one of the ci builds.
with:
green: 80
filename: coverage.out

- uses: stefanzweifel/git-auto-commit-action@v4
id: auto-commit-action
with:
commit_message: Apply Code Coverage Badge
skip_fetch: true
skip_checkout: true
file_pattern: ./README.md

- name: Push Changes
if: steps.auto-commit-action.outputs.changes_detected == 'true'
uses: ad-m/github-push-action@master
with:
github_token: ${{ github.token }}
branch: ${{ github.ref }}
- name: Update coverage report
uses: ncruces/go-coverage-report@main

0 comments on commit 9dc2b48

Please sign in to comment.