Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ant0wan committed Oct 18, 2023
1 parent 50b0918 commit 0e710bc
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Tests

on: [push]

defaults:
run:
shell: sh

jobs:
fmt:
runs-on: ubuntu-latest
Expand All @@ -17,7 +21,7 @@ jobs:
working-directory: ${{ matrix.directory }}
steps:
- uses: actions/checkout@v4
- uses: hashicorp/setup-terraform@v2
- run: ./install.sh
- run: terraform fmt -recursive -check
init:
needs: [fmt]
Expand All @@ -34,7 +38,7 @@ jobs:
working-directory: ${{ matrix.directory }}
steps:
- uses: actions/checkout@v4
- uses: hashicorp/setup-terraform@v2
- run: ./install.sh
- run: terraform init -no-color
validate:
needs: [init]
Expand All @@ -51,7 +55,7 @@ jobs:
working-directory: ${{ matrix.directory }}
steps:
- uses: actions/checkout@v4
- uses: hashicorp/setup-terraform@v2
- run: ./install.sh
- run: terraform init -no-color
- run: terraform validate -no-color
plan:
Expand All @@ -69,7 +73,7 @@ jobs:
working-directory: ${{ matrix.directory }}
steps:
- uses: actions/checkout@v4
- uses: hashicorp/setup-terraform@v2
- run: ./install.sh
- run: terraform init -no-color
- run: terraform plan -no-color

0 comments on commit 0e710bc

Please sign in to comment.