Skip to content

Instantly share code, notes, and snippets.

@yokawasa
Last active December 25, 2020 05:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yokawasa/ed9f955bb317a4db829d1221ab983794 to your computer and use it in GitHub Desktop.
Save yokawasa/ed9f955bb317a4db829d1221ab983794 to your computer and use it in GitHub Desktop.
GitHub Actions - cloudformation lint actions performance comparision
name: "cloudformation lint test action"
on:
push:
branches:
- test-cfn-lint
paths:
- 'cfn/*'
jobs:
cfn-lint-test01:
name: "cfn lint test01"
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v2
- name: "Lint Template"
uses: scottbrenner/cfn-lint-action@master
with:
args: cfn/*.yaml
cfn-lint-test03:
name: "cfn lint test02"
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.9.1'
- name: Setup cfn-python-lint
run: pip install --no-cache-dir cfn-lint
- name: Execute lint check
run: cfn-lint cfn/*.yaml
cfn-lint-test02:
name: "cfn lint test03"
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.9.1'
- name: Setup cfn-python-lint
run: |
pip install --no-cache-dir cfn-lint
cfn-lint --update-specs
cfn-lint --update-iam-policies
- name: Execute lint check
run: cfn-lint cfn/*.yaml
@yokawasa
Copy link
Author

GHA run summary

スクリーンショット 2020-12-25 13 08 43

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment