generated from trfore/docker-image
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (39 loc) · 904 Bytes
/
ci.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
name: CI
on:
push:
branches: ["*"]
paths:
- "Dockerfile"
pull_request:
branches: ["*"]
paths-ignore:
- "**.md"
- "LICENSE"
workflow_dispatch:
concurrency:
group: ${{ github.workflow}}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
cgroup-v1:
uses: trfore/docker-image/.github/workflows/test_systemd.yml@main
with:
continue-on-error: true
runner: ubuntu-20.04
volume-permission: ro
cgroup-v2:
uses: trfore/docker-image/.github/workflows/test_systemd.yml@main
with:
continue-on-error: false
runner: ubuntu-22.04
volume-permission: rw
check:
if: success() || failure()
needs:
- cgroup-v1
- cgroup-v2
runs-on: ubuntu-latest
steps:
- run: >-
python -c "assert set([
'${{ needs.cgroup-v2.result }}',
]) == {'success'}"