-
Notifications
You must be signed in to change notification settings - Fork 25
60 lines (57 loc) · 1.47 KB
/
tests.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
name: tests
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
cfn-lint-tests:
strategy:
max-parallel: 4
matrix:
python-version: [3.8, 3.9, '3.10', 3.11]
os:
- ubuntu-latest
runs-on: ${{ matrix.os }}
env:
FOLDER: cfn-lint-serverless
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: make -C $FOLDER dev
- name: Formatting and Linting
run: make -C $FOLDER lint
- name: Tests
run: make -C $FOLDER test
- name: Security baseline
run: make -C $FOLDER security-baseline
- name: Complexity baseline
run: make -C $FOLDER complexity-baseline
tflint-tests:
strategy:
max-parallel: 4
matrix:
golang-version: [1.14, 1.15, 1.16]
os:
- ubuntu-latest
runs-on: ${{ matrix.os }}
env:
FOLDER: tflint-ruleset-aws-serverless
steps:
- uses: actions/checkout@v3
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: Install dependencies
run: make -C $FOLDER dev
- name: Formatting and Linting
run: make -C $FOLDER lint
- name: Tests
run: make -C $FOLDER test