Debian Codegraph @

.github/workflows/build-test.yml

raw
1 name: Build Test
2
3 on: [push, pull_request]
4
5 permissions:
6 contents: read
7
8 jobs:
9 build-test:
10 name: Build & Test
11 runs-on: ubuntu-latest
12
13 strategy:
14 matrix:
15 include:
16 - distro: debian
17 backend: apt
18 - distro: fedora
19 backend: dnf
20 - distro: fedora
21 backend: dnf5
22 - distro: fedora
23 backend: alpm
24 - distro: fedora
25 backend: zypp
26 - distro: solus
27 backend: eopkg
28 fail-fast: false
29
30 steps:
31 - name: Get this version
32 uses: actions/checkout@v6
33
34 - name: Get version from last ABI break
35 uses: actions/checkout@v6
36 with:
37 ref: ${{ env.LAST_ABI_BREAK }}
38 path: original-version
39 if: ${{ matrix.distro == 'debian' }}
40
41 - name: Create Build Environment
42 run: podman build -t packagekit-${{ matrix.distro }} -f tests/ci/Dockerfile-${{ matrix.distro }} .
43
44 - name: Build & Test
45 run: podman run -t -v `pwd`:/build packagekit-${{ matrix.distro }}
46 ./tests/ci/build-and-test.sh -Dpackaging_backend=${{ matrix.backend }}