Skip to content

Commit

Permalink
Merge pull request #46 from aws-samples/rezabekf/dependabot-fix
Browse files Browse the repository at this point in the history
Rezabekf/dependabot fix
  • Loading branch information
matteofigus authored May 11, 2022
2 parents a2b5287 + 192e8ed commit c3ec8a5
Show file tree
Hide file tree
Showing 11 changed files with 47,734 additions and 46,938 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ jobs:
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Set up Nodejs 12
- name: Set up Nodejs 16
uses: actions/setup-node@v1
with:
node-version: 12
node-version: 16
- name: Install node dependencies
run: npm i
- name: Install python dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ jobs:
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Set up Nodejs 12
- name: Set up Nodejs 16
uses: actions/setup-node@v1
with:
node-version: 12
node-version: 16
- name: Install dependencies
run: npm i
- name: Install python dependencies
Expand Down
43 changes: 43 additions & 0 deletions .github/workflows/unit-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Unit Tests
on:
push:
branches:
- master
pull_request:
types:
- opened
- edited
- synchronize
jobs:
unit_tests:
name: Unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

# Cache
- uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
# Setup
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10' # have to use quotes due to 0 being removed
- name: Install python packages
run: pip install -Ur requirements.txt
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1
- name: Install Ruby gems
run: gem install cfn-nag

# Run Tests
- name: CloudFormation lint test
run: cfn-lint src/cfn/**/*.yaml
- name: CloudFormation nag test
run: cfn_nag_scan --input-path src/cfn
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ We may ask you to sign a [Contributor License Agreement (CLA)](http://en.wikiped

The following applications are required to contribute:

- Node.js >=v12
- Node.js >=v16.x and npm>=8.x
- AWS CLI

To start, run `npm install`.
Expand Down
Loading

0 comments on commit c3ec8a5

Please sign in to comment.