File tree Expand file tree Collapse file tree 3 files changed +20
-15
lines changed
Expand file tree Collapse file tree 3 files changed +20
-15
lines changed Original file line number Diff line number Diff line change 1- # These are supported funding model platforms
2-
3- github : # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
1+ github : [jnonino]
42patreon : jnonino
5- open_collective : # Replace with a single Open Collective username
6- ko_fi : # Replace with a single Ko-fi username
7- tidelift : # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8- community_bridge : # Replace with a single Community Bridge project-name e.g., cloud-foundry
9- liberapay : # Replace with a single Liberapay username
10- issuehunt : # Replace with a single IssueHunt username
11- otechie : # Replace with a single Otechie username
12- custom : # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
Original file line number Diff line number Diff line change @@ -23,13 +23,28 @@ jobs:
2323 - name : Terraform Format Check
2424 run : terraform fmt -check -recursive -diff
2525
26+ discover-examples :
27+ outputs :
28+ matrix : ${{ steps.set-matrix.outputs.matrix }}
29+ runs-on : ubuntu-latest
30+ steps :
31+ - name : Checkout repository
32+ uses : actions/checkout@v6
33+ - name : Set validation matrix
34+ id : set-matrix
35+ run : |
36+ # Find all subdirectories in examples folder and convert to JSON array
37+ DIRS=$(find examples -maxdepth 1 -mindepth 1 -type d | sort)
38+ MATRIX=$(echo "$DIRS" | jq -R . | jq -s . | tr -d '\n')
39+ echo "matrix=${MATRIX}" >> $GITHUB_OUTPUT
40+
2641 validations :
42+ needs : discover-examples
2743 runs-on : ubuntu-latest
2844 container : hashicorp/terraform
2945 strategy :
30- matrix : {
31- dir : ['examples/complete', 'examples/provide-own-bucket']
32- }
46+ matrix :
47+ dir : ${{ fromJson(needs.discover-examples.outputs.matrix) }}
3348 services :
3449 localstack :
3550 image : localstack/localstack
Original file line number Diff line number Diff line change 1717 - id : trailing-whitespace
1818 args : [--markdown-linebreak-ext=md]
1919 - repo : https://github.com/antonbabenko/pre-commit-terraform
20- rev : v1.104 .0
20+ rev : v1.105 .0
2121 hooks :
2222 - id : terraform_docs
2323 - id : terraform_fmt
You can’t perform that action at this time.
0 commit comments