mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2026-10-19 07:45:00 +02:00
ci: fix qlty coverage upload
Signed-off-by: Jan Larwig <jan@larwig.com>
This commit is contained in:
@@ -7,6 +7,10 @@ on:
|
||||
pull_request:
|
||||
branches:
|
||||
- '**'
|
||||
permissions:
|
||||
contents: read
|
||||
id-token: write
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -22,13 +26,17 @@ jobs:
|
||||
go-version-file: go.mod
|
||||
id: go
|
||||
|
||||
- name: Get dependencies
|
||||
- name: Install golangci-lint
|
||||
env:
|
||||
# renovate: datasource=github-tags depName=golangci/golangci-lint
|
||||
GOLANGCI_LINT_VERSION: v2.8.0
|
||||
run: |
|
||||
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin ${GOLANGCI_LINT_VERSION}
|
||||
|
||||
- name: Install gcov2lcov
|
||||
run: |
|
||||
go install github.com/jandelgado/gcov2lcov@latest
|
||||
|
||||
- name: Verify Code Generation
|
||||
run: |
|
||||
make verify-generate
|
||||
@@ -49,10 +57,17 @@ jobs:
|
||||
make release
|
||||
|
||||
- name: Test
|
||||
env:
|
||||
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
|
||||
run: |
|
||||
./.github/workflows/test.sh
|
||||
make test
|
||||
|
||||
- name: Generate Coverage Report
|
||||
run: |
|
||||
gcov2lcov -infile=c.out -outfile=lcov.info
|
||||
|
||||
- uses: qltysh/qlty-action/coverage@v2
|
||||
with:
|
||||
oidc: true
|
||||
files: lcov.info
|
||||
|
||||
docker:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Reference in New Issue
Block a user