update coveralls badge when main is updated #20

Merged
natercio merged 2 commits from update-coveralls-badge into main 2025-11-26 10:34:40 +00:00
2 changed files with 32 additions and 10 deletions
Showing only changes of commit 950143e17d - Show all commits

View File

@@ -0,0 +1,32 @@
name: Badges
on:
push:
branches:
- main
jobs:
coveralls:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.25
- name: Run Unit tests
run: |
go test -covermode atomic -coverprofile=coverage.out ./...
grep -v -E "(main|_gen).go" coverage.out > coverage.filtered.out
mv coverage.filtered.out coverage.out
- name: Install goveralls
run: go install github.com/mattn/goveralls@v0.0.12
- name: Send coverage
env:
COVERALLS_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN}}
run: goveralls -coverprofile=coverage.out -service=github

View File

@@ -40,13 +40,3 @@ jobs:
- name: Run Unit tests - name: Run Unit tests
run: | run: |
go test -race -covermode atomic -coverprofile=coverage.out ./... go test -race -covermode atomic -coverprofile=coverage.out ./...
grep -v "_gen.go" coverage.out > coverage.filtered.out
mv coverage.filtered.out coverage.out
- name: Install goveralls
run: go install github.com/mattn/goveralls@v0.0.12
- name: Send coverage
env:
COVERALLS_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN}}
run: goveralls -coverprofile=coverage.out -service=github