cfnlint v1 compatibility upgrade #358
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |