-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 892 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Terraform Test
on:
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
name: Integration test
steps:
- uses: actions/checkout@v4
- name: terraform validate
uses: dflook/terraform-validate@v1
- name: terraform fmt
uses: dflook/terraform-fmt-check@v1
- name: terraform test
uses: dflook/terraform-test@v1
env:
CF_USER: ${{ secrets.CF_USER }}
CF_PASSWORD: ${{ secrets.CF_PASSWORD }}
TF_VAR_cf_user: ${{ secrets.CF_USER }}
TERRAFORM_PRE_RUN: |
apt-get update
apt-get install -y zip
validate-sandbox:
runs-on: ubuntu-latest
name: Validate sandbox
steps:
- uses: actions/checkout@v4
- name: terraform validate
uses: dflook/terraform-validate@v1
with:
path: sandbox-deploy