File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ name : " Template"
2+
3+ on :
4+ pull_request :
5+ push :
6+ branches : [main]
7+
8+ jobs :
9+ find-templates :
10+ name : Find Templates
11+ runs-on : ubuntu-latest
12+ outputs :
13+ folders : ${{ steps.jobs.outputs.folders }}
14+ steps :
15+ - uses : actions/checkout@v4
16+ - id : jobs
17+ run : |
18+ folders=$(find templates -mindepth 1 -maxdepth 1 -type d | jq -R . | jq -sc .)
19+ echo "$folders"
20+ echo "folders=$folders" >> $GITHUB_OUTPUT
21+
22+ matrix :
23+ name : Check template
24+ needs : [find-templates]
25+ runs-on : ${{ matrix.os }}
26+ strategy :
27+ matrix :
28+ os : [ ubuntu-latest, macos-latest ]
29+ folder : ${{ fromJSON(needs.find-templates.outputs.folders) }}
30+ steps :
31+ - uses : cachix/install-nix-action@v27
32+ - uses : actions/checkout@v4
33+ - run : nix flake check --override-input blueprint ../..
34+ working-directory : ${{ matrix.folder }}
You can’t perform that action at this time.
0 commit comments