Skip to content

Commit aaae314

Browse files
authored
Merge pull request #9 from getcft/release-1.1
Adding CFT Linter and Validation Checking
2 parents 7f1a67a + 9a0b04c commit aaae314

File tree

7 files changed

+875
-270
lines changed

7 files changed

+875
-270
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: CloudFormation Validation
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
workflow_dispatch:
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: CloudFormation Template Validation
19+
run: |
20+
pip install awscli
21+
aws cloudformation validate-template --template-body file://serverless-code-pipeline-cf-template.yml --region us-east-1
22+
env:
23+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
24+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
25+
- name: CloudFormation Linter
26+
run: |
27+
pip install cfn-lint
28+
cfn-lint -I serverless-code-pipeline-cf-template.yml

.travis.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# aws-serverless-code-pipeline-cf-template
2-
[![Build Status](https://travis-ci.org/getcft/aws-serverless-code-pipeline-cf-template.svg?branch=master)](https://travis-ci.org/getcft/aws-serverless-code-pipeline-cf-template)
2+
[![CloudFormation Validation](https://github.com/getcft/aws-serverless-code-pipeline-cf-template/actions/workflows/cloudformation-validation.yml/badge.svg)](https://github.com/getcft/aws-serverless-code-pipeline-cf-template/actions/workflows/cloudformation-validation.yml)
33

44
AWS CloudFormation template creating CodePipeline, CodeBuild supporting Serverless Framework and GitHub
55

0 commit comments

Comments
 (0)