-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Lukáš Hrázký
committed
Mar 10, 2021
1 parent
ab128f9
commit d649d79
Showing
1 changed file
with
73 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
--- | ||
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}} | ||
|
||
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 | ||
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}} |