diff options
Diffstat (limited to '.github/workflows/test.yml')
-rw-r--r-- | .github/workflows/test.yml | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 77ca6585..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 && \ |
@@ -59,7 +69,10 @@ jobs: | |||
59 | # - {"distro": "oraclelinux:9", "build": ".github/mock.sh"} | 69 | # - {"distro": "oraclelinux:9", "build": ".github/mock.sh"} |
60 | steps: | 70 | steps: |
61 | - name: Git clone repository | 71 | - name: Git clone repository |
62 | 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 }} | ||
63 | - name: Run the tests on ${{ matrix.distro }} | 76 | - name: Run the tests on ${{ matrix.distro }} |
64 | run: | | 77 | run: | |
65 | 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 |