Skip to content

Commit

Permalink
Merge pull request #9 from getcft/release-1.1
Browse files Browse the repository at this point in the history
Adding CFT Linter and Validation Checking
  • Loading branch information
nethacker authored May 23, 2024
2 parents 7f1a67a + 9a0b04c commit aaae314
Show file tree
Hide file tree
Showing 7 changed files with 875 additions and 270 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/cloudformation-validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: CloudFormation Validation

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: CloudFormation Template Validation
run: |
pip install awscli
aws cloudformation validate-template --template-body file://serverless-code-pipeline-cf-template.yml --region us-east-1
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- name: CloudFormation Linter
run: |
pip install cfn-lint
cfn-lint -I serverless-code-pipeline-cf-template.yml
25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# aws-serverless-code-pipeline-cf-template
[![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)
[![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)

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

Expand Down
Loading

0 comments on commit aaae314

Please sign in to comment.