-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 918 Bytes
/
lint.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
name: Lint Python and Terraform
on: push
jobs:
flake8-lint:
runs-on: ubuntu-latest
name: Python Lint
steps:
- name: Check out source repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Set up Python environment
uses: actions/setup-python@v5
with:
python-version-file: '.python-version'
- name: flake8 Lint
uses: py-actions/flake8@v2
with:
max-line-length: "120"
terraform-format:
runs-on: ubuntu-latest
name: Check terraform files for correct formatting.
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: terraform fmt
uses: dflook/terraform-fmt-check@v1
with:
path: .
- name: terraform validate
uses: dflook/terraform-validate@v1
with:
path: .