git.iko.soy/typeable/oauth2-proxy
on master help sign in
ci: fix qlty coverage upload

Signed-off-by: Jan Larwig <jan@larwig.com>

commit5020c33124cfa0a19e6406835308eba27d012eb8 authorJan Larwig <jan@larwig.com> dateSat 17 Jan 2026, 15:52 (8 months ago) parentcc0b48d
2 files changed+19−30
.github/workflows/ci.yml+19−4 .github/workflows/test.sh−26
.github/workflows/ci.yml+19−4
@@ -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
.github/workflows/test.shdeleted−26
@@ -1,26 +0,0 @@
1−#!/bin/bash
2−# manually exiting from script, because after-build needs to run always
3−set +e
4−
5−if [ -z $CC_TEST_REPORTER_ID ]; then
6− echo "1. CC_TEST_REPORTER_ID is unset, skipping"
7−else
8− echo "1. Running before-build"
9− ./cc-test-reporter before-build
10−fi
11−
12−echo "2. Running test"
13−make test
14−TEST_STATUS=$?
15−
16−if [ -z $CC_TEST_REPORTER_ID ]; then
17− echo "3. CC_TEST_REPORTER_ID is unset, skipping"
18−else
19− echo "3. Running after-build"
20− ./cc-test-reporter after-build --exit-code $TEST_STATUS --prefix $(go list -m)
21−fi
22−
23−if [ "$TEST_STATUS" -ne 0 ]; then
24− echo "Test failed, status code: $TEST_STATUS"
25− exit $TEST_STATUS
26−fi