Skip to content

Commit fa994a0

Browse files
committed
ci: add a job to run "tofu test"
1 parent 2383987 commit fa994a0

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/checks.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,24 @@ jobs:
5050
- name: Run OpenTofu commands
5151
run: tofu fmt -check -diff -recursive
5252

53+
tofu-test:
54+
runs-on: ubuntu-latest
55+
name: tofu test
56+
defaults:
57+
run:
58+
working-directory: ./infra
59+
steps:
60+
- uses: actions/checkout@v6
61+
- uses: opentofu/setup-opentofu@v1
62+
- name: Run OpenTofu commands
63+
env:
64+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
65+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
66+
SOPS_AGE_KEY: ${{ secrets.SOPS_AGE_KEY }}
67+
run: |
68+
tofu init
69+
tofu test
70+
5371
trivy-fs:
5472
name: use trivy to scan files
5573
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)