Skip to content

Commit

Permalink
Use dynamic matrix for scheduled tests
Browse files Browse the repository at this point in the history
Provides a solution for #7.
#7

Inspired by Ken Muse's "Dynamic Build Matrices in GitHub Actions".
https://www.kenmuse.com/blog/dynamic-build-matrices-in-github-actions/

Removed schedule from from generated workflows.

Retain push trigger on generated workflows for tests triggered by changes to
the installer script.
  • Loading branch information
iainelder committed Jun 30, 2024
1 parent 7f03c22 commit fd6f486
Show file tree
Hide file tree
Showing 73 changed files with 54 additions and 360 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/1password-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ on:
paths:
- programs/1password-cli/install.bash
- .github/workflows/1Password CLI.yml
schedule:
# Not at the start of an hour or a day to decreate the chance of delay.
# See schedule documentation.
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
- cron: "17 5 * * *"

workflow_dispatch:

Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/1password.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ on:
paths:
- programs/1password/install.bash
- .github/workflows/1Password.yml
schedule:
# Not at the start of an hour or a day to decreate the chance of delay.
# See schedule documentation.
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
- cron: "17 5 * * *"

workflow_dispatch:

Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/_program.yml.template
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ on:
paths:
- ${program_script}
- .github/workflows/${program_name}.yml
schedule:
# Not at the start of an hour or a day to decreate the chance of delay.
# See schedule documentation.
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
- cron: "17 5 * * *"

workflow_dispatch:

Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/act.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ on:
paths:
- programs/act/install.bash
- .github/workflows/Act.yml
schedule:
# Not at the start of an hour or a day to decreate the chance of delay.
# See schedule documentation.
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
- cron: "17 5 * * *"

workflow_dispatch:

Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/angle-grinder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ on:
paths:
- programs/angle-grinder/install.bash
- .github/workflows/Angle-Grinder.yml
schedule:
# Not at the start of an hour or a day to decreate the chance of delay.
# See schedule documentation.
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
- cron: "17 5 * * *"

workflow_dispatch:

Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/anki.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ on:
paths:
- programs/anki/install.bash
- .github/workflows/Anki.yml
schedule:
# Not at the start of an hour or a day to decreate the chance of delay.
# See schedule documentation.
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
- cron: "17 5 * * *"

workflow_dispatch:

Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/aws-nuke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ on:
paths:
- programs/aws-nuke/install.bash
- .github/workflows/aws-nuke.yml
schedule:
# Not at the start of an hour or a day to decreate the chance of delay.
# See schedule documentation.
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
- cron: "17 5 * * *"

workflow_dispatch:

Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/aws-vault.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ on:
paths:
- programs/aws-vault/install.bash
- .github/workflows/aws-vault.yml
schedule:
# Not at the start of an hour or a day to decreate the chance of delay.
# See schedule documentation.
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
- cron: "17 5 * * *"

workflow_dispatch:

Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/awscli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ on:
paths:
- programs/awscli/install.bash
- .github/workflows/awscli.yml
schedule:
# Not at the start of an hour or a day to decreate the chance of delay.
# See schedule documentation.
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
- cron: "17 5 * * *"

workflow_dispatch:

Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/awsls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ on:
paths:
- programs/awsls/install.bash
- .github/workflows/awsls.yml
schedule:
# Not at the start of an hour or a day to decreate the chance of delay.
# See schedule documentation.
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
- cron: "17 5 * * *"

workflow_dispatch:

Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/awsvpnclient.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ on:
paths:
- programs/awsvpnclient/install.bash
- .github/workflows/AWS Client VPN for Linux.yml
schedule:
# Not at the start of an hour or a day to decreate the chance of delay.
# See schedule documentation.
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
- cron: "17 5 * * *"

workflow_dispatch:

Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/bashmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ on:
paths:
- programs/bashmarks/install.bash
- .github/workflows/Bashmarks.yml
schedule:
# Not at the start of an hour or a day to decreate the chance of delay.
# See schedule documentation.
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
- cron: "17 5 * * *"

workflow_dispatch:

Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/borgbackup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ on:
paths:
- programs/borgbackup/install.bash
- .github/workflows/BorgBackup.yml
schedule:
# Not at the start of an hour or a day to decreate the chance of delay.
# See schedule documentation.
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
- cron: "17 5 * * *"

workflow_dispatch:

Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/clustergit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ on:
paths:
- programs/clustergit/install.bash
- .github/workflows/clustergit.yml
schedule:
# Not at the start of an hour or a day to decreate the chance of delay.
# See schedule documentation.
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
- cron: "17 5 * * *"

workflow_dispatch:

Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/codebuild-agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ on:
paths:
- programs/codebuild-agent/install.bash
- .github/workflows/AWS CodeBuild agent.yml
schedule:
# Not at the start of an hour or a day to decreate the chance of delay.
# See schedule documentation.
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
- cron: "17 5 * * *"

workflow_dispatch:

Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/cropgui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ on:
paths:
- programs/cropgui/install.bash
- .github/workflows/Cropgui.yml
schedule:
# Not at the start of an hour or a day to decreate the chance of delay.
# See schedule documentation.
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
- cron: "17 5 * * *"

workflow_dispatch:

Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/cw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ on:
paths:
- programs/cw/install.bash
- .github/workflows/cw.yml
schedule:
# Not at the start of an hour or a day to decreate the chance of delay.
# See schedule documentation.
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
- cron: "17 5 * * *"

workflow_dispatch:

Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/diff-pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ on:
paths:
- programs/diff-pdf/install.bash
- .github/workflows/diff-pdf.yml
schedule:
# Not at the start of an hour or a day to decreate the chance of delay.
# See schedule documentation.
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
- cron: "17 5 * * *"

workflow_dispatch:

Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/direnv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ on:
paths:
- programs/direnv/install.bash
- .github/workflows/direnv.yml
schedule:
# Not at the start of an hour or a day to decreate the chance of delay.
# See schedule documentation.
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
- cron: "17 5 * * *"

workflow_dispatch:

Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/dotnetsdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ on:
paths:
- programs/dotnetsdk/install.bash
- .github/workflows/.NET SDK.yml
schedule:
# Not at the start of an hour or a day to decreate the chance of delay.
# See schedule documentation.
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
- cron: "17 5 * * *"

workflow_dispatch:

Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/dsutils.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ on:
paths:
- programs/dsutils/install.bash
- .github/workflows/dsutils.yml
schedule:
# Not at the start of an hour or a day to decreate the chance of delay.
# See schedule documentation.
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
- cron: "17 5 * * *"

workflow_dispatch:

Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/duckdb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ on:
paths:
- programs/duckdb/install.bash
- .github/workflows/DuckDB.yml
schedule:
# Not at the start of an hour or a day to decreate the chance of delay.
# See schedule documentation.
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
- cron: "17 5 * * *"

workflow_dispatch:

Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/dvc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ on:
paths:
- programs/dvc/install.bash
- .github/workflows/DVC (Data Version Control).yml
schedule:
# Not at the start of an hour or a day to decreate the chance of delay.
# See schedule documentation.
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
- cron: "17 5 * * *"

workflow_dispatch:

Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/envman.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ on:
paths:
- programs/envman/install.bash
- .github/workflows/Envman.yml
schedule:
# Not at the start of an hour or a day to decreate the chance of delay.
# See schedule documentation.
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
- cron: "17 5 * * *"

workflow_dispatch:

Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/firefox-open-url-in-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ on:
paths:
- programs/firefox-open-url-in-container/install.bash
- .github/workflows/firefox-container.yml
schedule:
# Not at the start of an hour or a day to decreate the chance of delay.
# See schedule documentation.
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
- cron: "17 5 * * *"

workflow_dispatch:

Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/firefox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ on:
paths:
- programs/firefox/install.bash
- .github/workflows/Firefox.yml
schedule:
# Not at the start of an hour or a day to decreate the chance of delay.
# See schedule documentation.
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
- cron: "17 5 * * *"

workflow_dispatch:

Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/fzf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ on:
paths:
- programs/fzf/install.bash
- .github/workflows/fzf.yml
schedule:
# Not at the start of an hour or a day to decreate the chance of delay.
# See schedule documentation.
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
- cron: "17 5 * * *"

workflow_dispatch:

Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/gcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ on:
paths:
- programs/gcloud/install.bash
- .github/workflows/gcloud CLI.yml
schedule:
# Not at the start of an hour or a day to decreate the chance of delay.
# See schedule documentation.
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
- cron: "17 5 * * *"

workflow_dispatch:

Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/geckodriver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ on:
paths:
- programs/geckodriver/install.bash
- .github/workflows/geckodriver.yml
schedule:
# Not at the start of an hour or a day to decreate the chance of delay.
# See schedule documentation.
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
- cron: "17 5 * * *"

workflow_dispatch:

Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/gephi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ on:
paths:
- programs/gephi/install.bash
- .github/workflows/Gephi.yml
schedule:
# Not at the start of an hour or a day to decreate the chance of delay.
# See schedule documentation.
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
- cron: "17 5 * * *"

workflow_dispatch:

Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/git-secrets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ on:
paths:
- programs/git-secrets/install.bash
- .github/workflows/git-secrets.yml
schedule:
# Not at the start of an hour or a day to decreate the chance of delay.
# See schedule documentation.
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
- cron: "17 5 * * *"

workflow_dispatch:

Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/github-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ on:
paths:
- programs/github-cli/install.bash
- .github/workflows/GitHub CLI.yml
schedule:
# Not at the start of an hour or a day to decreate the chance of delay.
# See schedule documentation.
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
- cron: "17 5 * * *"

workflow_dispatch:

Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/gnucash3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ on:
paths:
- programs/gnucash3/install.bash
- .github/workflows/GnuCash 3.yml
schedule:
# Not at the start of an hour or a day to decreate the chance of delay.
# See schedule documentation.
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
- cron: "17 5 * * *"

workflow_dispatch:

Expand Down
Loading

0 comments on commit fd6f486

Please sign in to comment.