-
Notifications
You must be signed in to change notification settings - Fork 20
40 lines (37 loc) · 1.02 KB
/
build.yaml
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
name: Build
on:
pull_request:
branches:
- main
- v*
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
strategy:
fail-fast: true
matrix:
tf-version: [0.15.5, 1.0.11, 1.1.9, 1.2.9, 1.3.9, 1.4.2]
runs-on: ubuntu-latest
steps:
- name: Install terraform
run: |
TERRAFORM_VERSION=${{ matrix.tf-version }}
curl -LO https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip
unzip terraform_${TERRAFORM_VERSION}_linux_amd64.zip
sudo mv terraform /usr/local/bin
rm *
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: 1.19
- name: Checkout code
uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: /home/runner/go/pkg/mod
key: go-mod
- name: Build install and validate against examples
run: |
make examples