From: Laszlo Gombos Date: Thu, 18 Aug 2022 05:29:20 +0000 (+0000) Subject: ci: add workflow for manual test run X-Git-Tag: 058~165 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4012314f204806a67d038f378f525646814d12ea;p=thirdparty%2Fdracut.git 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. --- diff --git a/.github/workflows/manualtest.yml b/.github/workflows/manualtest.yml new file mode 100644 index 000000000..ff56339c1 --- /dev/null +++ b/.github/workflows/manualtest.yml @@ -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 }}