diff options
author | Sven Nierlein <sven@consol.de> | 2024-10-02 11:42:22 +0200 |
---|---|---|
committer | Sven Nierlein <sven@consol.de> | 2024-10-02 11:42:22 +0200 |
commit | d7579e42495e2ad83a48d1cea258c6b708aea603 (patch) | |
tree | bf0773eedb816b4fc94daf8e19be38530dcebce0 | |
parent | 91fa55f97162092060f602758a55c87088073e1f (diff) | |
download | monitoring-plugins-d7579e42495e2ad83a48d1cea258c6b708aea603.tar.gz |
add new github test workflow for debian:testing and fedora:rawhide
this workflow runs scheduled once a week, so it does not prevent
PRs from being merged but still allows us to notice if anything
will go wrong with the next release.
Remove rawhide test from the mandatory tests like we did with
debian testing already.
-rw-r--r-- | .github/workflows/test-next.yml | 77 | ||||
-rw-r--r-- | .github/workflows/test.yml | 1 |
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 00000000..083bc1e4 --- /dev/null +++ b/.github/workflows/test-next.yml | |||
@@ -0,0 +1,77 @@ | |||
1 | --- | ||
2 | name: Tests Debian:Testing and Fedora:Rawhide | ||
3 | |||
4 | on: | ||
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 | |||
12 | jobs: | ||
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 33220d6d..77ca6585 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"} |