Browse Source

ci: run all Fedora CI in a matrix

Also automatically cancel it, if the PR is updated
master
Harald Hoyer 3 years ago committed by Harald Hoyer
parent
commit
f5721c5921
  1. 49
      .github/workflows/fedora-32.yml
  2. 50
      .github/workflows/fedora-33.yml
  3. 49
      .github/workflows/fedora-latest.yml
  4. 54
      .github/workflows/fedora.yml

49
.github/workflows/fedora-32.yml

@ -1,49 +0,0 @@ @@ -1,49 +0,0 @@
## The test container is created with https://github.com/dracutdevs/fedora-container

name: Fedora-32

on:
push:
branches:
- 'master'

jobs:
test:
runs-on: ubuntu-latest
container:
image: quay.io/haraldh/dracut-fedora:32
options: "-v /dev/kvm:/dev/kvm"
timeout-minutes: 45
strategy:
matrix:
test: [
"01",
"02",
"03",
"04",
"10",
"11",
"12",
"13",
"14",
"15",
"17",
"20",
"21",
"30",
"31",
"35",
"36",
"40",
"41",
"98",
]
fail-fast: false
steps:
- name: "Checkout Repository"
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: "TEST-${{ matrix.test }}"
run: ./fedora-test-github.sh "TEST-${{ matrix.test }}" ${{ matrix.test }}

50
.github/workflows/fedora-33.yml

@ -1,50 +0,0 @@ @@ -1,50 +0,0 @@
## The test container is created with https://github.com/dracutdevs/fedora-container

name: Fedora-33

on:
push:
branches:
- 'master'
pull_request:

jobs:
test:
runs-on: ubuntu-latest
container:
image: quay.io/haraldh/dracut-fedora:33
options: "-v /dev/kvm:/dev/kvm"
timeout-minutes: 45
strategy:
matrix:
test: [
"01",
"02",
"03",
"04",
"10",
"11",
"12",
"13",
"14",
"15",
"17",
"20",
"21",
"30",
"31",
"35",
"36",
"40",
"41",
"98",
]
fail-fast: false
steps:
- name: "Checkout Repository"
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: "TEST-${{ matrix.test }}"
run: ./fedora-test-github.sh "TEST-${{ matrix.test }}" ${{ matrix.test }}

49
.github/workflows/fedora-latest.yml

@ -1,49 +0,0 @@ @@ -1,49 +0,0 @@
## The test container is created with https://github.com/dracutdevs/fedora-container

name: Fedora-latest

on:
push:
branches:
- 'master'

jobs:
test:
runs-on: ubuntu-latest
container:
image: quay.io/haraldh/dracut-fedora:latest
options: "-v /dev/kvm:/dev/kvm"
timeout-minutes: 45
strategy:
matrix:
test: [
"01",
"02",
"03",
"04",
"10",
"11",
"12",
"13",
"14",
"15",
"17",
"20",
"21",
"30",
"31",
"35",
"36",
"40",
"41",
"98",
]
fail-fast: false
steps:
- name: "Checkout Repository"
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: "TEST-${{ matrix.test }}"
run: ./fedora-test-github.sh "TEST-${{ matrix.test }}" ${{ matrix.test }}

54
.github/workflows/fedora.yml

@ -0,0 +1,54 @@ @@ -0,0 +1,54 @@
## The test container is created with https://github.com/dracutdevs/fedora-container

name: Fedora

on:
pull_request:
branches: [ master ]

jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 45
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.fedora }}-${{ matrix.test }}
cancel-in-progress: true
strategy:
matrix:
fedora: [
"32", "33", "34", "latest"
]
test: [
"01",
"02",
"03",
"04",
"10",
"11",
"12",
"13",
"14",
"15",
"17",
"20",
"21",
"30",
"31",
"35",
"36",
"40",
"41",
"98",
]
fail-fast: false
container:
image: quay.io/haraldh/dracut-fedora:${{ matrix.fedora }}
options: "-v /dev/kvm:/dev/kvm"
steps:
- name: "Checkout Repository"
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: "F${{ matrix.fedora }} TEST-${{ matrix.test }} ${{ github.head_ref }}"
run: ./fedora-test-github.sh "TEST-${{ matrix.test }}" ${{ matrix.test }}
Loading…
Cancel
Save