-
Notifications
You must be signed in to change notification settings - Fork 11
61 lines (54 loc) · 1.27 KB
/
build.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Build
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
terraform_version:
- 1.9.3
- 1.9.2
- 1.9.1
- 1.9.0
- 1.8.5
- 1.8.4
- 1.8.3
- 1.8.2
- 1.8.1
- 1.8.0
- 1.7.5
- 1.7.4
- 1.7.3
- 1.7.2
- 1.7.1
- 1.7.0
- 1.6.6
- 1.6.5
- 1.6.4
- 1.6.3
- 1.6.2
- 1.6.1
- 1.6.0
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install tfenv
run: |
git clone https://github.com/tfutils/tfenv.git $HOME/.tfenv
echo "$HOME/.tfenv/bin" >> $GITHUB_PATH
- name: Install Terraform v${{ matrix.terraform_version }}
run: |
echo ${{ matrix.terraform_version }} > .terraform-version
tfenv install ${{ matrix.terraform_version }}
tfenv use ${{ matrix.terraform_version }}
- name: Run tests
run: |
tests/tests.sh
- name: Capture logs
uses: actions/upload-artifact@v4
if: always()
with:
name: logs-${{ matrix.terraform_version }}
path: test-reports/**/*