-
Notifications
You must be signed in to change notification settings - Fork 5
59 lines (52 loc) · 1.64 KB
/
ci.yml
File metadata and controls
59 lines (52 loc) · 1.64 KB
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
49
50
51
52
53
54
55
56
57
58
59
name: ci
on:
workflow_dispatch:
workflow_call:
push:
branches: [ main ]
pull_request:
paths:
- '.github/workflows/ci.yml'
- '**/*.go'
- 'test/**'
- 'makefile'
- 'go.mod'
- 'go.sum'
- '!**/*.md'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
build-and-verify:
uses: Open-CMSIS-Pack/workflows-and-actions-collection/.github/workflows/build-and-verify.yml@v1.0.2
secrets:
QLTY_COVERAGE_TOKEN: ${{ secrets.QLTY_COVERAGE_TOKEN }}
with:
program: vidx2pidx
test-matrix: '[{"platform":"windows-2022","arch":"amd64"},{"platform":"ubuntu-24.04","arch":"amd64"}]'
go-version-file: ./go.mod
enable-qlty-coverage: true
publish-test-results:
name: "Publish Tests Results"
needs: [ build-and-verify ]
runs-on: ubuntu-latest
permissions:
checks: write
pull-requests: write
if: ${{ github.event.pull_request.user.login != 'dependabot[bot]' && github.workflow != 'Release' }}
steps:
- name: Harden Runner
uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
with:
egress-policy: audit
- name: Download Artifacts
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
with:
path: artifacts
- name: publish test results
uses: EnricoMi/publish-unit-test-result-action/linux@27d65e188ec43221b20d26de30f4892fad91df2f # v2.22.0
with:
files: artifacts/**/vidx2pidx-testreport-*.xml
report_individual_runs: true