-
Notifications
You must be signed in to change notification settings - Fork 416
77 lines (69 loc) · 2.2 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
---
name: DNF CI
on: pull_request_target
jobs:
copr-build:
name: 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}}
integration-tests:
name: DNF Integration Tests
needs: copr-build
runs-on: ubuntu-latest
container:
image: ghcr.io/rpm-software-management/dnf-ci-host
options: --privileged
volumes:
# A workaround for an undeterministic "OCI not found" error, see
# https://github.com/containers/podman/issues/10321
- /var/lib/mycontainer:/var/lib/containers
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}}
ansible-tests:
name: Ansible Tests
needs: copr-build
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}}