-
Notifications
You must be signed in to change notification settings - Fork 1
128 lines (126 loc) · 3.55 KB
/
check.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
name: Check
on:
pull_request: ~
push:
branches:
- main
- v0
permissions: read-all
jobs:
audit:
name: Audit
uses: ./.github/workflows/reusable-audit.yml
needs:
- build
build:
name: Build with ${{ matrix.engine }}
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
engine:
- docker
- podman
steps:
- name: Checkout repository
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
with:
persist-credentials: false
- name: Build
env:
ENGINE: ${{ matrix.engine }}
run: make build "ENGINE=${ENGINE}"
check:
name: ${{ matrix.what }}
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
what:
- ci
- formatting
- image
- md
- yml
steps:
- name: Checkout repository
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
with:
persist-credentials: false
- name: Install Node.js
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
cache: npm
node-version-file: .nvmrc
- name: Install tooling
uses: asdf-vm/actions/install@4f8f7939dd917fc656bb7c3575969a5988c28364 # v3.0.0
- name: Check
env:
WHAT: ${{ matrix.what }}
run: make "check-${WHAT}"
codeql:
name: CodeQL (actions)
runs-on: ubuntu-24.04
permissions:
security-events: write # To upload CodeQL results
steps:
- name: Checkout repository
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
with:
persist-credentials: false
- name: Initialize CodeQL
uses: github/codeql-action/init@b6a472f63d85b9c78a3ac5e89422239fc15e9b3c # v3.28.1
with:
config-file: ./.github/codeql.yml
languages: actions
- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@b6a472f63d85b9c78a3ac5e89422239fc15e9b3c # v3.28.1
licenses:
name: Licenses
runs-on: ubuntu-24.04
needs:
- build
steps:
- name: Checkout repository
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
with:
persist-credentials: false
- name: Install Node.js
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
cache: npm
node-version-file: .nvmrc
- name: Install tooling
uses: asdf-vm/actions/install@4f8f7939dd917fc656bb7c3575969a5988c28364 # v3.0.0
- name: Check container image licenses
if: ${{ failure() || success() }}
run: make check-licenses-image
- name: Check npm licenses
if: ${{ failure() || success() }}
run: make check-licenses-npm
test:
name: Test with ${{ matrix.engine }}
runs-on: ubuntu-24.04
needs:
- build
strategy:
fail-fast: false
matrix:
engine:
- docker
- podman
steps:
- name: Checkout repository
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
with:
persist-credentials: false
submodules: true
- name: Install Node.js
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
cache: npm
node-version-file: .nvmrc
- name: Test
env:
ENGINE: ${{ matrix.engine }}
run: make test "ENGINE=${ENGINE}"