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)

fixes #43
  • Loading branch information
gsauthof committed Dec 22, 2024
1 parent b29717c commit 1caf31b
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 10 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
19 changes: 19 additions & 0 deletions .github/workflows/e2e-schedule.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
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-schedule:
strategy:
matrix:
target:
- fedora
- rawhide
- alma
fail-fast: false
uses: ./.github/workflows/e2e-base.yml
with:
target: ${{ matrix.target }}

17 changes: 17 additions & 0 deletions .github/workflows/e2e-trigger.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: e2e-trigger
run-name: end-to-end test latest greatest fedora and alma
on:
push:
pull_request:
jobs:
e2e-trigger:
strategy:
matrix:
target:
- fedora
- rawhide
- alma
fail-fast: false
uses: ./.github/workflows/e2e-base.yml
with:
target: ${{ matrix.target }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[![Copr Build Status](https://copr.fedorainfracloud.org/coprs/gsauthof/dracut-sshd/package/dracut-sshd/status_image/last_build.png)](https://copr.fedorainfracloud.org/coprs/gsauthof/dracut-sshd/)
[![CI Build Status](https://github.com/gsauthof/dracut-sshd/actions/workflows/e2e-fedora.yml/badge.svg)](https://github.com/gsauthof/dracut-sshd/actions/workflows/e2e-fedora.yml)
[![CI Build Status](https://github.com/gsauthof/dracut-sshd/actions/workflows/e2e-trigger.yml/badge.svg)](https://github.com/gsauthof/dracut-sshd/actions/workflows/e2e-trigger.yml)

This [Dracut][dracut] module (dracut-sshd) integrates the
[OpenSSH][ossh] sshd into the [initramfs][iramfs]. It allows for
Expand Down

0 comments on commit 1caf31b

Please sign in to comment.