Skip to content

Commit 47e83fd

Browse files
authored
Update build.yml
use can-ling instead of sam which errors on validate --lint
1 parent 7206728 commit 47e83fd

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/build.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,13 @@ jobs:
3737
- name: SAM Build
3838
run: sam build
3939

40-
- name: Validate SAM Template
41-
run: sam validate --lint
40+
- name: Setup Cloud Formation Linter with Latest Version
41+
uses: scottbrenner/cfn-lint-action@v2
42+
43+
- name: Print the Cloud Formation Linter Version & run Linter.
44+
run: |
45+
cfn-lint --version
46+
cfn-lint -t ./template.yaml
4247
4348

4449

0 commit comments

Comments
 (0)