Skip to content

Commit 51d7bcb

Browse files
shaxbeeZibi Mandziejewicz
authored andcommitted
ci: publish coverage report
1 parent be199fd commit 51d7bcb

File tree

2 files changed

+43
-3
lines changed

2 files changed

+43
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,34 @@ on:
44
push:
55

66
jobs:
7+
verify:
8+
name: Verify
9+
runs-on: ubuntu-latest
10+
env:
11+
CODECOV_FILE: "${GITHUB_WORKSPACE}/build/coverage.xml"
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
- name: Setup Go
16+
uses: actions/setup-go@v5
17+
with:
18+
go-version: '1.24'
19+
- name: Generate
20+
run: make generate format
21+
- name: No changed files
22+
run: git diff --name-status --exit-code
23+
- name: Lint
24+
run: make lint
25+
- name: Integration test
26+
run: make integration-test
27+
- name: Code Coverage Report
28+
uses: irongut/CodeCoverageSummary@v1.3.0
29+
with:
30+
filename: ${{ env.CODECOV_FILE }}
31+
badge: true
32+
indicators: true
33+
format: markdown
34+
output: both
735
image-build:
836
name: Image Build
937
runs-on: ubuntu-latest
@@ -23,13 +51,13 @@ jobs:
2351
username: ${{ github.actor }}
2452
password: ${{ secrets.GITHUB_TOKEN }}
2553
- name: Build images
26-
uses: hiberbee/github-action-skaffold@1.19.0
54+
uses: hiberbee/github-action-skaffold@1.27.0
2755
with:
2856
skaffold-version: 2.14.1
2957
command: build
30-
file-output: build/images.json
58+
file-output: images.json
3159
- name: Archive image tags
3260
uses: actions/upload-artifact@v4
3361
with:
3462
name: images
35-
path: build/images.json
63+
path: images.json

.golangci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
run:
2+
concurrency: 4
3+
timeout: 5m
4+
modules-download-mode: readonly
5+
tests: true
6+
7+
issues:
8+
exclude-use-default: false
9+
max-issues-per-linter: 0
10+
max-same-issues: 0
11+
output:
12+
format: tab

0 commit comments

Comments
 (0)