-
Notifications
You must be signed in to change notification settings - Fork 92
130 lines (116 loc) · 3.75 KB
/
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
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
129
130
---
name: DNF CI
on: pull_request_target
jobs:
copr-build-dnf4:
name: DNF4 Copr Build
runs-on: ubuntu-latest
container:
image: ghcr.io/rpm-software-management/dnf-ci-host
outputs:
package-urls: ${{steps.copr-build.outputs.package-urls}}
steps:
- name: Check out ci-dnf-stack
uses: actions/checkout@v2
with:
repository: rpm-software-management/ci-dnf-stack
- name: Setup CI
id: setup-ci
uses: ./.github/actions/setup-ci
with:
copr-user: ${{secrets.COPR_USER}}
copr-api-token: ${{secrets.COPR_API_TOKEN}}
- name: Check out sources
uses: actions/checkout@v2
with:
path: gits/${{github.event.repository.name}}
ref: ${{github.event.pull_request.head.sha}} # check out the PR HEAD
fetch-depth: 0
- name: Run Copr Build
id: copr-build
uses: ./.github/actions/copr-build
with:
copr-user: ${{steps.setup-ci.outputs.copr-user}}
copr-build-dnf5:
name: DNF5 Copr Build
runs-on: ubuntu-latest
container:
image: ghcr.io/rpm-software-management/dnf-ci-host
outputs:
package-urls: ${{steps.copr-build.outputs.package-urls}}
steps:
- name: Check out ci-dnf-stack
uses: actions/checkout@v2
with:
repository: rpm-software-management/ci-dnf-stack
- name: Setup CI
id: setup-ci
uses: ./.github/actions/setup-ci
with:
copr-user: ${{secrets.COPR_USER}}
copr-api-token: ${{secrets.COPR_API_TOKEN}}
- name: Check out sources
uses: actions/checkout@v2
with:
path: gits/${{github.event.repository.name}}
ref: ${{github.event.pull_request.head.sha}} # check out the PR HEAD
fetch-depth: 0
- name: Run Copr Build
id: copr-build
uses: ./.github/actions/copr-build
with:
copr-user: ${{steps.setup-ci.outputs.copr-user}}
overlay: dnf5-ci
integration-tests-dnf4:
name: DNF4 Integration Tests
needs: copr-build-dnf4
runs-on: ubuntu-latest
container:
image: ghcr.io/rpm-software-management/dnf-ci-host
options: --privileged
steps:
- name: Check out ci-dnf-stack
uses: actions/checkout@v2
with:
repository: rpm-software-management/ci-dnf-stack
ref: dnf-4-stack
- name: Run Integration Tests
uses: ./.github/actions/integration-tests
with:
package-urls: ${{needs.copr-build.outputs.package-urls}}
integration-tests-dnf5:
name: DNF5 Integration Tests
needs: copr-build-dnf5
runs-on: ubuntu-latest
container:
image: ghcr.io/rpm-software-management/dnf-ci-host
options: --privileged
strategy:
matrix:
extra-run-args: [--tags dnf5 --command dnf5, --tags dnf5daemon --command dnf5daemon-client]
steps:
- name: Check out ci-dnf-stack
uses: actions/checkout@v2
with:
repository: rpm-software-management/ci-dnf-stack
- name: Run Integration Tests
uses: ./.github/actions/integration-tests
with:
package-urls: ${{needs.copr-build.outputs.package-urls}}
extra-run-args: ${{matrix.extra-run-args}}
ansible-tests:
name: Ansible Tests
needs: copr-build-dnf4
runs-on: ubuntu-latest
container:
image: ghcr.io/rpm-software-management/dnf-ci-host
options: --privileged
steps:
- name: Check out ci-dnf-stack
uses: actions/checkout@v2
with:
repository: rpm-software-management/ci-dnf-stack
- name: Run Ansible Tests
uses: ./.github/actions/ansible-tests
with:
package-urls: ${{needs.copr-build.outputs.package-urls}}