Skip to content

Commit

Permalink
ci: add workflow for manual test run
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
LaszloGombos authored and johannbg committed Aug 26, 2022
1 parent 639fb95 commit 4012314
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/manualtest.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 4012314

Please sign in to comment.