Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 23 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,24 @@ jobs:
with:
check-latest: true
go-version: 1.24.6
code_coverage:
name: Code coverage report
if: github.event_name == 'pull_request'
needs:
- test
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v5
- name: Post coverage report
uses: fgrosse/go-coverage-report@v1.2.0
with:
coverage-artifact-name: code-coverage
coverage-file-name: cover.out
permissions:
actions: read
contents: read
pull-requests: write
test:
name: Test
needs:
Expand All @@ -52,10 +70,8 @@ jobs:
sudo apt-get install -y --no-install-recommends postgresql-17
export PATH=/usr/lib/postgresql/17/bin:$PATH
make build/cover.out
- 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
- name: Archive code coverage results
uses: actions/upload-artifact@v4
with:
name: code-coverage
path: build/cover.out
1 change: 0 additions & 1 deletion Makefile.maker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ metadata:
githubWorkflow:
ci:
enabled: true
coveralls: true

golang:
autoupdateableDeps: ^github.com/(?:sapcc|sap-cloud-infrastructure)/
Expand Down
Loading