Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ant0wan committed Oct 18, 2023
1 parent f1b07f8 commit aa81a01
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Tests

on: [push]


jobs:
fmt:
runs-on: ubuntu-latest
strategy:
matrix:
directory:
- ./test_dir/project1
- ./test_dir/project2
- ./test_dir/project3
- ./test_dir/project4
steps:
- uses: actions/checkout@v4
- uses: hashicorp/setup-terraform@v2
- run: terraform fmt -recursive -check
working-directory: ${{ matrix.directory }}
init:
needs: [fmt]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: hashicorp/setup-terraform@v2
- run: terraform init -no-color
validate:
needs: [init]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: hashicorp/setup-terraform@v2
- run: terraform init -no-color
- run: terraform validate -no-color
plan:
needs: [init]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: hashicorp/setup-terraform@v2
- run: terraform init -no-color
- run: terraform validate -no-color

0 comments on commit aa81a01

Please sign in to comment.