@@ -7,6 +7,10 @@ on:
77 pull_request:
88 branches:
99 - '**'
10+permissions:
11+ contents: read
12+ id-token: write
13+
1014jobs:
1115 build:
1216 runs-on: ubuntu-latest
@@ -22,13 +26,17 @@ jobs:
2226 go-version-file: go.mod
2327 id: go
2428
25− - name: Get dependencies
29+ - name: Install golangci-lint
2630 env:
2731 # renovate: datasource=github-tags depName=golangci/golangci-lint
2832 GOLANGCI_LINT_VERSION: v2.8.0
2933 run: |
3034 curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin ${GOLANGCI_LINT_VERSION}
3135
36+ - name: Install gcov2lcov
37+ run: |
38+ go install github.com/jandelgado/gcov2lcov@latest
39+
3240 - name: Verify Code Generation
3341 run: |
3442 make verify-generate
@@ -49,10 +57,17 @@ jobs:
4957 make release
5058
5159 - name: Test
52− env:
53− CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
5460 run: |
55− ./.github/workflows/test.sh
61+ make test
62+
63+ - name: Generate Coverage Report
64+ run: |
65+ gcov2lcov -infile=c.out -outfile=lcov.info
66+
67+ - uses: qltysh/qlty-action/coverage@v2
68+ with:
69+ oidc: true
70+ files: lcov.info
5671
5772 docker:
5873 runs-on: ubuntu-latest