-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (41 loc) · 953 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
42
43
44
45
name: Test
on:
push:
branches:
- main
paths-ignore:
- README.md
pull_request:
jobs:
show-context:
runs-on: ubuntu-latest
steps:
- name: Show github context object
run: echo $JSON
env:
JSON: ${{ toJSON(github) }}
test:
strategy:
matrix:
runs-on:
- ubuntu-latest
- windows-latest
terraform:
- 1.4.0
- latest
max-parallel: 1
runs-on: ${{ matrix.runs-on }}
env:
TF_LOG_PROVIDER: debug
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup tools
uses: ./.github/actions/setup-tools
with:
terraform-version: ${{ matrix.terraform }}
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- name: Run test
run: go test
working-directory: tests