diff options
-rw-r--r-- | .github/workflows/test-next.yml | 14 | ||||
-rw-r--r-- | .github/workflows/test.yml | 14 |
2 files changed, 26 insertions, 2 deletions
diff --git a/.github/workflows/test-next.yml b/.github/workflows/test-next.yml index fd59e85d..7ca255c9 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 | - '*' |
@@ -25,6 +31,9 @@ jobs: | |||
25 | steps: | 31 | steps: |
26 | - name: Git clone repository | 32 | - name: Git clone repository |
27 | uses: actions/checkout@v4 | 33 | uses: actions/checkout@v4 |
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 |
@@ -60,6 +69,9 @@ jobs: | |||
60 | steps: | 69 | steps: |
61 | - name: Git clone repository | 70 | - name: Git clone repository |
62 | uses: actions/checkout@v4 | 71 | uses: actions/checkout@v4 |
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 |
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 146d91b6..f9919b2d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml | |||
@@ -2,7 +2,13 @@ | |||
2 | name: Tests | 2 | name: Tests |
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: | 13 | branches: |
8 | - '*' | 14 | - '*' |
@@ -23,6 +29,9 @@ jobs: | |||
23 | steps: | 29 | steps: |
24 | - name: Git clone repository | 30 | - name: Git clone repository |
25 | uses: actions/checkout@v4 | 31 | uses: actions/checkout@v4 |
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 }} | ||
26 | - name: Run the tests on ${{ matrix.distro }} | 35 | - name: Run the tests on ${{ matrix.distro }} |
27 | run: | | 36 | run: | |
28 | 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 |
@@ -61,6 +70,9 @@ jobs: | |||
61 | steps: | 70 | steps: |
62 | - name: Git clone repository | 71 | - name: Git clone repository |
63 | uses: actions/checkout@v4 | 72 | uses: actions/checkout@v4 |
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 |