diff options
author | Lukáš Hrázký <lhrazky@redhat.com> | 2021-03-02 21:15:37 +0300 |
---|---|---|
committer | Daniel Mach <daniel.mach@gmail.com> | 2021-03-03 17:26:41 +0300 |
commit | 7d3a1b6e5434010b4758b9a391d3c783e29e4561 (patch) | |
tree | b4fbb73490d87750a73c6a74b114b2514dd615c3 | |
parent | 956a318b427e2489ccac754d199a09d32690ddc3 (diff) |
Add CI running the Integration Tests suite
-rw-r--r-- | .github/workflows/ci.yml | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..2a9f1e4 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,57 @@ +--- +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.pull_request.head.repo.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: createrepo_c-ci + + integration-tests: + name: Integration 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 Integration Tests + uses: ./.github/actions/integration-tests + with: + suite: createrepo_c + package-urls: ${{needs.copr-build.outputs.package-urls}} |