-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (36 loc) · 949 Bytes
/
ci.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
name: "CI"
on:
push:
branches: [master, slalom]
pull_request:
branches: [master, slalom]
workflow_dispatch:
jobs:
test:
# The type of runner that the job will run on
# https://github.com/actions/virtual-environments/
#
# Ubuntu 24.04:
# [x] shellcheck
# [_] terraform
# [x] ansible
# [ ] ansible-lint
# [_] flake8
# [x] yamllint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo pip install flake8
sudo pip install ansible-lint
# https://github.com/hashicorp/setup-terraform
- uses: hashicorp/setup-terraform@v3
# https://github.com/marketplace/actions/setup-tflint
- name: Install tflint
uses: terraform-linters/setup-tflint@v4
with:
tflint_version: latest
- name: Test
run: cd test && bash test.sh