-
Notifications
You must be signed in to change notification settings - Fork 357
69 lines (67 loc) · 1.5 KB
/
install_script.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
62
63
64
65
66
67
68
69
name: install_script
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
vm:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Install latest version
run: |
./install_linux.sh
tflint -v
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install specific version
env:
TFLINT_VERSION: v0.15.0
run: |
./install_linux.sh
tflint -v
- name: Install to custom path
run: |
mkdir "$TFLINT_INSTALL_PATH"
./install_linux.sh
"$TFLINT_INSTALL_PATH/tflint" -v
env:
TFLINT_INSTALL_PATH: ${{ github.workspace }}/install-path
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
container:
runs-on: ubuntu-latest
container:
image: hashicorp/terraform
options: --user 0
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
run: |
apk add bash curl curl-dev unzip
- name: Install latest version
run: |
./install_linux.sh
tflint -v
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install specific version
env:
TFLINT_VERSION: v0.15.0
run: |
./install_linux.sh
tflint -v