forked from PackageKit/PackageKit
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (32 loc) · 1.27 KB
/
build-test.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
name: Build Test
on: [push, pull_request]
jobs:
build-test:
name: Build & Test
runs-on: ubuntu-latest
strategy:
matrix:
distro:
- fedora
- debian
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Create Build Environment
run: podman build -t packagekit-${{ matrix.distro }} -f tests/ci/Dockerfile-${{ matrix.distro }} .
- name: Build & Test [DNF]
run: podman run -t -v `pwd`:/build packagekit-${{ matrix.distro }}
./tests/ci/build-and-test.sh -Dpackaging_backend=dnf
if: ${{ matrix.distro == 'fedora' }}
- name: Build & Test [APT]
run: podman run -t -v `pwd`:/build packagekit-${{ matrix.distro }}
./tests/ci/build-and-test.sh -Dpackaging_backend=apt
if: ${{ matrix.distro == 'debian' }}
- name: Build & Test [ZYPP]
run: podman run -t -v `pwd`:/build packagekit-${{ matrix.distro }}
./tests/ci/build-and-test.sh -Dpackaging_backend=zypp
if: ${{ matrix.distro == 'debian' }}
- name: Build & Test [ALPM]
run: podman run -t -v `pwd`:/build packagekit-${{ matrix.distro }}
./tests/ci/build-and-test.sh -Dpackaging_backend=alpm
if: ${{ matrix.distro == 'debian' }}