diff options
Diffstat (limited to '.github/workflows/test-next.yml')
| -rw-r--r-- | .github/workflows/test-next.yml | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/.github/workflows/test-next.yml b/.github/workflows/test-next.yml index 81240759..0e69c251 100644 --- a/.github/workflows/test-next.yml +++ b/.github/workflows/test-next.yml | |||
| @@ -2,7 +2,13 @@ | |||
| 2 | name: Tests Debian:Testing and Fedora:Rawhide | 2 | name: Tests Debian:Testing and Fedora:Rawhide |
| 3 | 3 | ||
| 4 | on: | 4 | on: |
| 5 | workflow_dispatch: {} | 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 | ||
| 6 | push: | 12 | push: |
| 7 | branches-ignore: | 13 | branches-ignore: |
| 8 | - '*' | 14 | - '*' |
| @@ -24,7 +30,10 @@ jobs: | |||
| 24 | prepare: .github/prepare_debian.sh | 30 | prepare: .github/prepare_debian.sh |
| 25 | steps: | 31 | steps: |
| 26 | - name: Git clone repository | 32 | - name: Git clone repository |
| 27 | uses: actions/checkout@v4 | 33 | uses: actions/checkout@v5 |
| 34 | - name: Setup tmate session, see https://github.com/marketplace/actions/debugging-with-tmate | ||
| 35 | uses: mxschmitt/action-tmate@v3 | ||
| 36 | if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }} | ||
| 28 | - name: Run the tests on ${{ matrix.distro }} | 37 | - name: Run the tests on ${{ matrix.distro }} |
| 29 | run: | | 38 | run: | |
| 30 | docker volume create --driver local --opt type=tmpfs --opt device=tmpfs --opt o=size=100m,uid=1000 tmp-vol | 39 | docker volume create --driver local --opt type=tmpfs --opt device=tmpfs --opt o=size=100m,uid=1000 tmp-vol |
| @@ -38,7 +47,7 @@ jobs: | |||
| 38 | ${{ matrix.distro }} \ | 47 | ${{ matrix.distro }} \ |
| 39 | /bin/sh -c '${{ matrix.prepare }} && \ | 48 | /bin/sh -c '${{ matrix.prepare }} && \ |
| 40 | tools/setup && \ | 49 | tools/setup && \ |
| 41 | ./configure --enable-libtap --with-ipv6=no && \ | 50 | ./configure --enable-libtap && \ |
| 42 | make && \ | 51 | make && \ |
| 43 | make test && \ | 52 | make test && \ |
| 44 | make dist && \ | 53 | make dist && \ |
| @@ -59,7 +68,10 @@ jobs: | |||
| 59 | - {"distro": "fedora:rawhide", "build": ".github/mock.sh"} | 68 | - {"distro": "fedora:rawhide", "build": ".github/mock.sh"} |
| 60 | steps: | 69 | steps: |
| 61 | - name: Git clone repository | 70 | - name: Git clone repository |
| 62 | uses: actions/checkout@v4 | 71 | uses: actions/checkout@v5 |
| 72 | - name: Setup tmate session, see https://github.com/marketplace/actions/debugging-with-tmate | ||
| 73 | uses: mxschmitt/action-tmate@v3 | ||
| 74 | if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }} | ||
| 63 | - name: Run the tests on ${{ matrix.distro }} | 75 | - name: Run the tests on ${{ matrix.distro }} |
| 64 | run: | | 76 | run: | |
| 65 | docker volume create --driver local --opt type=tmpfs --opt device=tmpfs --opt o=size=100m,uid=1000 tmp-vol | 77 | docker volume create --driver local --opt type=tmpfs --opt device=tmpfs --opt o=size=100m,uid=1000 tmp-vol |
