]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
ci: add workflow for manual test run
authorLaszlo Gombos <laszlo.gombos@gmail.com>
Thu, 18 Aug 2022 05:29:20 +0000 (05:29 +0000)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Fri, 26 Aug 2022 08:18:03 +0000 (08:18 +0000)
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.

.github/workflows/manualtest.yml [new file with mode: 0644]

diff --git a/.github/workflows/manualtest.yml b/.github/workflows/manualtest.yml
new file mode 100644 (file)
index 0000000..ff56339
--- /dev/null
@@ -0,0 +1,34 @@
+name: Manual test
+
+on:
+    workflow_dispatch:
+        inputs:
+            test:
+                description: 'Test to run'
+                default: '04'
+                required: true
+            container:
+                type: choice
+                description: 'distro'
+                default: 'fedora'
+                options:
+                    - "fedora"
+                    - "arch"
+                    - "debian"
+                    - "opensuse"
+
+jobs:
+    test:
+        runs-on: ubuntu-latest
+        timeout-minutes: 45
+        container:
+            image: ghcr.io/dracutdevs/${{ inputs.container }}
+            options: "--privileged -v /dev:/dev"
+        steps:
+            -   name: "Checkout Repository"
+                uses: actions/checkout@v2
+                with:
+                    fetch-depth: 0
+
+            -   name: "${{ inputs.container }} TEST-${{ inputs.test }}"
+                run: ./tools/test-github.sh "TEST-${{ inputs.test }}" ${{ inputs.test }}