-
-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (41 loc) · 1.17 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Build
on: [push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 15
if: |
github.event_name != 'pull_request' ||
github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.20.1
- name: Build
run: make ci
- name: Publish test report
uses: mikepenz/action-junit-report@v5
if: always()
with:
annotations_limit: 10
report_paths: "out/report/test/junit-report.xml"
- name: Publish coverage report
uses: codecov/codecov-action@v4
if: always()
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: "out/report/test/coverage.out"
verbose: true
- name: Upload reports artifact
uses: actions/upload-artifact@v4
if: always()
with:
name: build-reports
retention-days: 7
path: |
out/**/*.xml
out/**/*.html
out/**/*.cov