Debian Codegraph @

.github/workflows/ci.yml

raw
1 ---
2 name: DNF CI
3 on: pull_request_target
4
5 jobs:
6 copr-build:
7 name: Copr Build
8 runs-on: ubuntu-latest
9 container:
10 image: ghcr.io/rpm-software-management/dnf-ci-host
11 outputs:
12 package-urls: ${{steps.copr-build.outputs.package-urls}}
13 steps:
14 - name: Check out ci-dnf-stack
15 uses: actions/checkout@v2
16 with:
17 repository: rpm-software-management/ci-dnf-stack
18
19 - name: Setup CI
20 id: setup-ci
21 uses: ./.github/actions/setup-ci
22 with:
23 copr-user: ${{secrets.COPR_USER}}
24 copr-api-token: ${{secrets.COPR_API_TOKEN}}
25
26 - name: Check out sources
27 uses: actions/checkout@v2
28 with:
29 path: gits/${{github.event.repository.name}}
30 ref: ${{github.event.pull_request.head.sha}} # check out the PR HEAD
31 fetch-depth: 0
32
33 - name: Run Copr Build
34 id: copr-build
35 uses: ./.github/actions/copr-build
36 with:
37 copr-user: ${{steps.setup-ci.outputs.copr-user}}
38 overlay: createrepo_c-ci
39
40 integration-tests:
41 name: Integration Tests
42 needs: copr-build
43 runs-on: ubuntu-latest
44 container:
45 image: ghcr.io/rpm-software-management/dnf-ci-host
46 options: --privileged
47 steps:
48 - name: Check out ci-dnf-stack
49 uses: actions/checkout@v2
50 with:
51 repository: rpm-software-management/ci-dnf-stack
52
53 - name: Run Integration Tests
54 uses: ./.github/actions/integration-tests
55 with:
56 suite: createrepo_c
57 package-urls: ${{needs.copr-build.outputs.package-urls}}