Skip to content

Commit

Permalink
split worflow into scheduled and triggered workflows
Browse files Browse the repository at this point in the history
and create job matrix for:

- Fedora latest stable
- Fedora Rawhide
- Alma (the RHEL clone of hearts)
  • Loading branch information
gsauthof committed Dec 22, 2024
1 parent e1b9dfe commit 7acab2f
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: e2e-fedora
run-name: end-to-end test latest Fedora (${{ github.sha }} ${{ github.ref }} ${{ github.actor }})
on:
push:
pull_request:
schedule:
# minute hour dom month dow
- cron: '29 22 * * 3'
workflow_call:
inputs:
target:
required: true
type: string
jobs:
e2e-est-fedora:
e2e-test:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
Expand Down Expand Up @@ -41,11 +41,25 @@ jobs:
fi
virsh --connect qemu:///system list --all
- name: run test
env:
target: ${{ inputs.target }}
run: |
cd ..
mkdir -p work
set -x
cd work
../dracut-sshd/test/get-fedora.sh
../dracut-sshd/test/e2e.sh $(cat f-release)
case "$target" in
fedora)
../dracut-sshd/test/get-fedora.sh
../dracut-sshd/test/e2e.sh $(cat f-release)
;;
rawhide)
../dracut-sshd/test/get-fedora.sh rawhide
../dracut-sshd/test/e2e.sh $(cat f-release)
;;
alma)
../dracut-sshd/test/get-alma.sh
../dracut-sshd/test/e2e.sh $(cat alma-release) alma
;;
esac
18 changes: 18 additions & 0 deletions .github/workflows/e2e-schedule.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: e2e-schedule
run-name: end-to-end test latest greatest fedora and alma each weak
on:
schedule:
# minute hour dom month dow
- cron: '29 22 * * 3'
jobs:
e2e-test-schedule:
strategy:
matrix:
target:
- fedora
- rawhide
- alma
uses: ./.github/workflows/e2e-base.yml
with:
target: ${{ matrix.target }}

16 changes: 16 additions & 0 deletions .github/workflows/e2e-trigger.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: e2e-trigger
run-name: end-to-end test latest greatest fedora and alma
on:
push:
pull_request:
jobs:
e2e-test-schedule:
strategy:
matrix:
target:
- fedora
- rawhide
- alma
uses: ./.github/workflows/e2e-base.yml
with:
target: ${{ matrix.target }}

0 comments on commit 7acab2f

Please sign in to comment.