summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/test-next.yml77
-rw-r--r--.github/workflows/test.yml1
2 files changed, 77 insertions, 1 deletions
diff --git a/.github/workflows/test-next.yml b/.github/workflows/test-next.yml
new file mode 100644
index 0000000..083bc1e
--- /dev/null
+++ b/.github/workflows/test-next.yml
@@ -0,0 +1,77 @@
1---
2name: Tests Debian:Testing and Fedora:Rawhide
3
4on:
5 push:
6 branches-ignore:
7 - '*'
8 schedule:
9 # Run every week on Monday at 9:00 AM (UTC)
10 - cron: '0 9 * * 1'
11
12jobs:
13 full-test:
14 name: Running unit and integrationt tests
15 runs-on: ubuntu-latest
16 strategy:
17 fail-fast: false
18 matrix:
19 distro:
20 - 'debian:testing'
21 include:
22 - distro: 'debian:testing'
23 prepare: .github/prepare_debian.sh
24 steps:
25 - name: Git clone repository
26 uses: actions/checkout@v4
27 - name: Run the tests on ${{ matrix.distro }}
28 run: |
29 docker volume create --driver local --opt type=tmpfs --opt device=tmpfs --opt o=size=100m,uid=1000 tmp-vol
30 docker run \
31 -e NPTEST_ACCEPTDEFAULT=1 \
32 -e NPTEST_CACHE="/src/.github/NPTest.cache" \
33 -w /src -v ${PWD}:/src \
34 --tmpfs /media/ramdisk1 \
35 -v /var/run/utmp:/var/run/utmp \
36 --mount source=tmp-vol,destination=/src,target=/media/ramdisk2 \
37 ${{ matrix.distro }} \
38 /bin/sh -c '${{ matrix.prepare }} && \
39 tools/setup && \
40 ./configure --enable-libtap --with-ipv6=no && \
41 make && \
42 make test && \
43 make dist && \
44 tar zxf monitoring-plugins-*.tar.gz && \
45 cd monitoring-plugins-*/ && \
46 ./configure && \
47 make'
48 docker container prune -f
49 docker volume prune -f
50
51 build-test:
52 name: Running rpm build test on ${{ matrix.distro }}
53 runs-on: ubuntu-latest
54 strategy:
55 fail-fast: false
56 matrix:
57 include:
58 - {"distro": "fedora:rawhide", "build": ".github/mock.sh"}
59 steps:
60 - name: Git clone repository
61 uses: actions/checkout@v4
62 - name: Run the tests on ${{ matrix.distro }}
63 run: |
64 docker volume create --driver local --opt type=tmpfs --opt device=tmpfs --opt o=size=100m,uid=1000 tmp-vol
65 docker run \
66 --privileged=true \
67 -e NPTEST_ACCEPTDEFAULT=1 \
68 -e NPTEST_CACHE="/src/.github/NPTest.cache" \
69 -w /src -v ${PWD}:/src \
70 --tmpfs /media/ramdisk1 \
71 -v /var/run/utmp:/var/run/utmp \
72 --mount source=tmp-vol,destination=/src,target=/media/ramdisk2 \
73 ${{ matrix.distro }} \
74 /bin/sh -c '${{ matrix.build }} && \
75 ls -la'
76 docker container prune -f
77 docker volume prune -f
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 33220d6..77ca658 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -54,7 +54,6 @@ jobs:
54 matrix: 54 matrix:
55 include: 55 include:
56 - {"distro": "fedora:latest", "build": ".github/mock.sh"} 56 - {"distro": "fedora:latest", "build": ".github/mock.sh"}
57 - {"distro": "fedora:rawhide", "build": ".github/mock.sh"}
58 - {"distro": "rockylinux:8", "build": ".github/mock.sh"} 57 - {"distro": "rockylinux:8", "build": ".github/mock.sh"}
59 - {"distro": "almalinux:9", "build": ".github/mock.sh"} 58 - {"distro": "almalinux:9", "build": ".github/mock.sh"}
60# - {"distro": "oraclelinux:9", "build": ".github/mock.sh"} 59# - {"distro": "oraclelinux:9", "build": ".github/mock.sh"}