Skip to content

Commit

Permalink
Refactor workflow for all installers
Browse files Browse the repository at this point in the history
  • Loading branch information
iainelder committed Jul 1, 2024
1 parent aea9682 commit d294bdc
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 54 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/test_all.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Test all installers
on:
schedule:
# To decrease the chance of delay, avoid the start of the hour.
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
- cron: "17 5 * * *"
workflow_dispatch:

jobs:
list_installers:
name: List installers
runs-on: ubuntu-latest
outputs:
installers: ${{steps.list_step.outputs.installers}}
steps:
- name: Check out code
uses: actions/checkout@v4

- name: List installers
id: list_step
run: |
{
printf "installers="
find programs -mindepth 1 -maxdepth 1 -printf "%P\n" \
| sort | jq -R | jq -s -c -M
} >> "$GITHUB_OUTPUT"
test_installers:
name: Test installers
needs: list_installers
uses: ./.github/workflows/test_installers.yml
with:
installers: ${{needs.list_installers.outputs.installers}}
54 changes: 0 additions & 54 deletions .github/workflows/test_installer.yml

This file was deleted.

0 comments on commit d294bdc

Please sign in to comment.