aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2026-05-03 21:02:54 +0200
committerStefan Majewsky <majewsky@gmx.net>2026-05-03 21:02:54 +0200
commitcadbdaeac471c21758b37c3117693a95e8010ba8 (patch)
tree10e510cbbc7f0f97c7691e45f435e617dbeb616f /.github
parenta6d4077769bb4b770296729bd924bfcf5ecf0ebe (diff)
downloadgo-gg-cadbdaeac471c21758b37c3117693a95e8010ba8.tar.gz
.github/workflows: bump action versions, remove Coveralls
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/checks.yaml40
1 files changed, 28 insertions, 12 deletions
diff --git a/.github/workflows/checks.yaml b/.github/workflows/checks.yaml
index 5e96628..3b2c9a8 100644
--- a/.github/workflows/checks.yaml
+++ b/.github/workflows/checks.yaml
@@ -21,9 +21,9 @@ jobs:
### Setup Phase
- name: Check out code
- uses: actions/checkout@v4
+ uses: actions/checkout@v6
- name: Set up Go
- uses: actions/setup-go@v5
+ uses: actions/setup-go@v6
with:
check-latest: true
go-version: stable
@@ -32,21 +32,37 @@ jobs:
# Static Tests
- name: Run golangci-lint
- uses: golangci/golangci-lint-action@v8
+ uses: golangci/golangci-lint-action@v9
with:
version: latest
- name: REUSE Compliance Check
- uses: fsfe/reuse-action@v5
+ uses: fsfe/reuse-action@v6
####################
# Test Suite
- name: Run tests
- run: go test -shuffle=on -coverprofile=build/cover.out -covermode=count ./...
- - name: Upload coverage report to Coveralls
- env:
- COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- GIT_BRANCH: ${{ github.head_ref }}
- run: |
- go install github.com/mattn/goveralls@latest
- goveralls -service=github -coverprofile=build/cover.out
+ run: mkdir -p build && go test -shuffle=on -coverprofile=build/cover.out -covermode=count ./...
+ - name: Archive code coverage results
+ uses: actions/upload-artifact@v7
+ with:
+ name: code-coverage
+ path: build/cover.out
+
+ code_coverage:
+ name: Code coverage report
+ if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
+ needs: [ checks ]
+ runs-on: ubuntu-latest
+ permissions:
+ actions: read
+ contents: read
+ pull-requests: write
+ steps:
+ - name: Check out code
+ uses: actions/checkout@v6
+ - name: Post coverage report
+ uses: fgrosse/go-coverage-report@v1.3.0
+ with:
+ coverage-artifact-name: code-coverage
+ coverage-file-name: cover.out