-
Notifications
You must be signed in to change notification settings - Fork 25
67 lines (63 loc) · 1.71 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
61
62
63
64
65
66
67
name: tests
on:
pull_request:
branches: [main]
push:
branches: [main]
# Add concurrency to prevent parallel runs on same ref
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
cfn-lint-tests:
strategy:
fail-fast: false
max-parallel: 4
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
env:
FOLDER: cfn-lint-serverless
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Install ruff
run: pip install ruff
- 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:
fail-fast: false
max-parallel: 4
matrix:
go-version: ['1.20', '1.21', '1.22', '1.23']
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
env:
FOLDER: tflint-ruleset-aws-serverless
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
cache: true
- name: Install dependencies
run: make -C $FOLDER dev
- name: Formatting and Linting
run: make -C $FOLDER lint
- name: Tests
run: make -C $FOLDER test