README: rework the entrypoint (#71) #24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Template" | |
on: | |
pull_request: | |
push: | |
branches: [main] | |
jobs: | |
find-templates: | |
name: Find Templates | |
runs-on: ubuntu-latest | |
outputs: | |
folders: ${{ steps.jobs.outputs.folders }} | |
steps: | |
- uses: actions/checkout@v4 | |
- id: jobs | |
run: | | |
folders=$(find templates -mindepth 1 -maxdepth 1 -type d | jq -R . | jq -sc .) | |
echo "$folders" | |
echo "folders=$folders" >> $GITHUB_OUTPUT | |
matrix: | |
name: Check template | |
needs: [find-templates] | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ ubuntu-latest, macos-latest ] | |
folder: ${{ fromJSON(needs.find-templates.outputs.folders) }} | |
steps: | |
- uses: cachix/install-nix-action@v30 | |
- uses: actions/checkout@v4 | |
- run: nix flake check --override-input blueprint ../.. | |
working-directory: ${{ matrix.folder }} |