Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Set the default behavior, in case people don't have core.autocrlf set.
* text eol=lf
33 changes: 22 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,22 @@
# Continous Integration
name: ci

on:
pull_request:
branches:
- master
push:
branches:
- master
on: [ push, pull_request ]

jobs:
build:
runs-on: ubuntu-18.04
steps:
- uses: actions/setup-python@v4
with:
python-version: 3.7
os_build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
python: [ 3.6, 3.7, 3.8, 3.9 ]
node: [ 14 ]
env:
SAM_CLI_TELEMETRY: "0"
AWS_REGION: "us-east-1"
Expand All @@ -25,7 +30,8 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.7
python-version: ${{ matrix.python }}
cache: 'pip'
- name: Install Dependencies Python
id: install_python
run: |
Expand All @@ -35,14 +41,19 @@ jobs:
pip install .
- uses: actions/setup-node@v3
with:
node-version: 14
node-version: ${{ matrix.node }}
cache: 'npm'
- name: Install Dependencies Node.js
id: install_nodejs
# Touch needed because of https://github.com/aws/aws-cli/issues/2639
run: |
npm ci --optional
npm ci --include=optional
find ./node_modules/* -mtime +10950 -exec touch {} \;
npm run build
- uses: actions/cache@v3
with:
path: ~/.cache/pre-commit/
key: ${{ matrix.os }}-${{ env.pythonLocation }}${{ hashFiles('.pre-commit-config.yaml') }}
- name: Run Unit Tests
id: unit_testing
run: |
Expand Down Expand Up @@ -74,7 +85,7 @@ jobs:
cp "$RPDK_PATH" ./dist
npm install "./dist/$RPDK_PACKAGE"
cfn generate -vv && cfn validate -vv
npm install --optional
npm install --include=optional
sam build --debug --build-dir ./build TypeFunction
sam build --debug --build-dir ./build TestEntrypoint
sam local invoke -t build/template.yaml --debug --event sam-tests/create.json --log-file sam.log TestEntrypoint
Expand Down
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ repos:
- id: isort
# language_version: python3.6
- repo: https://github.com/ambv/black
rev: 22.10.0
rev: 22.8.0
hooks:
- id: black
# language_version: python3.6
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
rev: v4.1.0
hooks:
- id: check-case-conflict
- id: end-of-file-fixer
Expand Down Expand Up @@ -44,7 +44,7 @@ repos:
- id: python-check-mock-methods
- id: python-no-log-warn
- repo: https://github.com/PyCQA/bandit
rev: 1.7.4
rev: 1.7.1
hooks:
- id: bandit
files: "^python/"
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-e .