summaryrefslogtreecommitdiffstats
path: root/.github/workflows/manualtest.yml
blob: b790dcf7c67b0ecda0829229ea91ebfd8e23b9d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Manual test

on:
    workflow_dispatch:
        inputs:
            test:
                description: "Array of tests to run, such as [11,12]"
                default: "['04']"
                required: true
            container:
                type: choice
                description: 'distro'
                default: 'fedora'
                options:
                    - "fedora"
                    - "arch"
                    - "debian"
                    - "ubuntu"
                    - "opensuse"
                    - "gentoo"

jobs:
    test:
        runs-on: ubuntu-latest
        timeout-minutes: 45
        strategy:
            matrix:
                test: ${{ fromJSON(inputs.test) }}
        container:
            image: ghcr.io/dracutdevs/${{ inputs.container }}
            options: "--privileged -v /dev:/dev"
        steps:
            -   name: "Checkout Repository"
                uses: actions/checkout@v1
                with:
                    fetch-depth: 0
            -   name: "${{ inputs.container }} ${{ matrix.test }}"
                run: ./tools/test-github.sh "TEST-${{ matrix.test }}" ${{ matrix.test }}