Skip to content

Commit 4012314

Browse files
LaszloGombosjohannbg
authored andcommitted
ci: add workflow for manual test run
This workflow allows it to run any of the 29 tests on any of the 4 containers. On commit, currently the CI only runs 24 tests out of the 116 possible combinations of test runs. As the project grows, the usefulness of this tool will also grow.
1 parent 639fb95 commit 4012314

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/manualtest.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Manual test
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
test:
7+
description: 'Test to run'
8+
default: '04'
9+
required: true
10+
container:
11+
type: choice
12+
description: 'distro'
13+
default: 'fedora'
14+
options:
15+
- "fedora"
16+
- "arch"
17+
- "debian"
18+
- "opensuse"
19+
20+
jobs:
21+
test:
22+
runs-on: ubuntu-latest
23+
timeout-minutes: 45
24+
container:
25+
image: ghcr.io/dracutdevs/${{ inputs.container }}
26+
options: "--privileged -v /dev:/dev"
27+
steps:
28+
- name: "Checkout Repository"
29+
uses: actions/checkout@v2
30+
with:
31+
fetch-depth: 0
32+
33+
- name: "${{ inputs.container }} TEST-${{ inputs.test }}"
34+
run: ./tools/test-github.sh "TEST-${{ inputs.test }}" ${{ inputs.test }}

0 commit comments

Comments
 (0)