Skip to content

Commit

Permalink
node 18 and test testing yml
Browse files Browse the repository at this point in the history
  • Loading branch information
solderq35 committed Aug 24, 2023
1 parent 5e50ce0 commit 0360012
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/LCL-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Set-up Node
uses: actions/setup-node@v1
with:
node-version: 16
node-version: 18
- name: npm install
run: npm install --prefix=dependencies/nodejs install --loglevel=verbose
- name: env encrpytion
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/test-LCL-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: TEST Lambda Common Layer Deployment
on:
push:
branches-ignore:
- master
jobs:
deploy-sam:
name: Deploy Serveless API
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-python@v2
- uses: aws-actions/setup-sam@v2
- uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-west-2
- name: Set-up Node
uses: actions/setup-node@v1
with:
node-version: 18
- name: npm install
run: npm install --prefix=dependencies/nodejs install --loglevel=verbose
- name: env encrpytion
run: openssl aes-256-cbc -K ${{ secrets.ENV_KEY }} -iv ${{ secrets.ENV_IV }} -in .env.enc -out ./dependencies/nodejs/.env -d
- name: Deploy
run: |
sam validate
3 changes: 2 additions & 1 deletion template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Metadata:
Globals:
Function:
Timeout: 3
Runtime: nodejs16.x
Runtime: nodejs18.x
Api:
Cors:
AllowMethods: "'POST, GET'"
Expand Down Expand Up @@ -101,5 +101,6 @@ Resources:
- nodejs10.x
- nodejs12.x
- nodejs16.x
- nodejs18.x
LicenseInfo: 'MIT'
RetentionPolicy: Retain

0 comments on commit 0360012

Please sign in to comment.