generated from terraform-linters/tflint-ruleset-template
-
Notifications
You must be signed in to change notification settings - Fork 73
44 lines (42 loc) · 1.06 KB
/
e2e.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
name: e2e
on:
push:
branches:
- master
pull_request:
branches:
- master
schedule:
- cron: "0 0 * * *"
jobs:
e2e:
name: ${{ matrix.os }} (${{ matrix.version }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
version: [v0.42.0, latest]
env:
TFLINT_VERSION: ${{ matrix.version }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Install TFLint
run: curl -sL https://raw.githubusercontent.com/terraform-linters/tflint/master/install_linux.sh | bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install plugin (Linux)
if: runner.os == 'Linux'
run: make install
- name: Install plugin (Windows)
if: runner.os == 'Windows'
run: |
mkdir -p ~/.tflint.d/plugins
go build -o ~/.tflint.d/plugins/tflint-ruleset-aws.exe
shell: bash
- name: Run E2E tests
run: make e2e