refactor(s3): Move all cache files to the cache/
folder
#1187
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: Lint | |
on: [pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.11" | |
- name: Install pip | |
run: | | |
python -m pip install --upgrade pip | |
- name: Lint with flake8 | |
run: | | |
pip install flake8 | |
flake8 ./aws/logs_monitoring/ --count --select=E9,F --show-source --statistics --exclude=*_pb2.py | |
flake8 ./aws/rds_enhanced_monitoring/ --count --select=E9,F --show-source --statistics | |
- name: Check formatting with Black | |
run: | | |
pip install black | |
black --check --diff --exclude pb2.py ./aws/logs_monitoring | |
black --check --diff ./aws/rds_enhanced_monitoring | |
- name: Setup CloudFormation Linter with Latest Version | |
uses: scottbrenner/cfn-lint-action@v2 | |
- name: Print the CloudFormation Linter Version & run Linter | |
run: | | |
cfn-lint --version | |
# cfn-lint was updated in July 2024 to add this check which fails on the template. | |
# TODO: We might be able to update the template to fix this error; it seems likely that | |
# SecurityGroupIds in VpcConfig are not generated properly | |
cfn-lint -t aws/logs_monitoring/template.yaml -i W1030 | |
cfn-lint -t aws/rds_enhanced_monitoring/rds-enhanced-sam-template.yaml |