diff options
Diffstat (limited to '.github/workflows/test.yml')
| -rw-r--r-- | .github/workflows/test.yml | 20 | 
1 files changed, 16 insertions, 4 deletions
| diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 33220d6d..1ac8aaf3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml | |||
| @@ -2,6 +2,13 @@ | |||
| 2 | name: Tests | 2 | name: Tests | 
| 3 | 3 | ||
| 4 | on: | 4 | on: | 
| 5 | workflow_dispatch: | ||
| 6 | inputs: | ||
| 7 | debug_enabled: | ||
| 8 | type: boolean | ||
| 9 | description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' | ||
| 10 | required: false | ||
| 11 | default: false | ||
| 5 | push: | 12 | push: | 
| 6 | branches: | 13 | branches: | 
| 7 | - '*' | 14 | - '*' | 
| @@ -21,7 +28,10 @@ jobs: | |||
| 21 | prepare: .github/prepare_debian.sh | 28 | prepare: .github/prepare_debian.sh | 
| 22 | steps: | 29 | steps: | 
| 23 | - name: Git clone repository | 30 | - name: Git clone repository | 
| 24 | uses: actions/checkout@v4 | 31 | uses: actions/checkout@v5 | 
| 32 | - name: Setup tmate session, see https://github.com/marketplace/actions/debugging-with-tmate | ||
| 33 | uses: mxschmitt/action-tmate@v3 | ||
| 34 | if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }} | ||
| 25 | - name: Run the tests on ${{ matrix.distro }} | 35 | - name: Run the tests on ${{ matrix.distro }} | 
| 26 | run: | | 36 | run: | | 
| 27 | docker volume create --driver local --opt type=tmpfs --opt device=tmpfs --opt o=size=100m,uid=1000 tmp-vol | 37 | docker volume create --driver local --opt type=tmpfs --opt device=tmpfs --opt o=size=100m,uid=1000 tmp-vol | 
| @@ -35,7 +45,7 @@ jobs: | |||
| 35 | ${{ matrix.distro }} \ | 45 | ${{ matrix.distro }} \ | 
| 36 | /bin/sh -c '${{ matrix.prepare }} && \ | 46 | /bin/sh -c '${{ matrix.prepare }} && \ | 
| 37 | tools/setup && \ | 47 | tools/setup && \ | 
| 38 | ./configure --enable-libtap --with-ipv6=no && \ | 48 | ./configure --enable-libtap && \ | 
| 39 | make && \ | 49 | make && \ | 
| 40 | make test && \ | 50 | make test && \ | 
| 41 | make dist && \ | 51 | make dist && \ | 
| @@ -54,13 +64,15 @@ jobs: | |||
| 54 | matrix: | 64 | matrix: | 
| 55 | include: | 65 | include: | 
| 56 | - {"distro": "fedora:latest", "build": ".github/mock.sh"} | 66 | - {"distro": "fedora:latest", "build": ".github/mock.sh"} | 
| 57 | - {"distro": "fedora:rawhide", "build": ".github/mock.sh"} | ||
| 58 | - {"distro": "rockylinux:8", "build": ".github/mock.sh"} | 67 | - {"distro": "rockylinux:8", "build": ".github/mock.sh"} | 
| 59 | - {"distro": "almalinux:9", "build": ".github/mock.sh"} | 68 | - {"distro": "almalinux:9", "build": ".github/mock.sh"} | 
| 60 | # - {"distro": "oraclelinux:9", "build": ".github/mock.sh"} | 69 | # - {"distro": "oraclelinux:9", "build": ".github/mock.sh"} | 
| 61 | steps: | 70 | steps: | 
| 62 | - name: Git clone repository | 71 | - name: Git clone repository | 
| 63 | uses: actions/checkout@v4 | 72 | uses: actions/checkout@v5 | 
| 73 | - name: Setup tmate session, see https://github.com/marketplace/actions/debugging-with-tmate | ||
| 74 | uses: mxschmitt/action-tmate@v3 | ||
| 75 | if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }} | ||
| 64 | - name: Run the tests on ${{ matrix.distro }} | 76 | - name: Run the tests on ${{ matrix.distro }} | 
| 65 | run: | | 77 | run: | | 
| 66 | docker volume create --driver local --opt type=tmpfs --opt device=tmpfs --opt o=size=100m,uid=1000 tmp-vol | 78 | docker volume create --driver local --opt type=tmpfs --opt device=tmpfs --opt o=size=100m,uid=1000 tmp-vol | 
