Skip to content

Commit

Permalink
Update to Node.js 20 (#38)
Browse files Browse the repository at this point in the history
* Update test-LCL-deploy.yml to Node.js 20 and latest actions versions

* Update LCL to Node 20

* Update LCL-deploy.yml
  • Loading branch information
s-egge authored Jul 2, 2024
1 parent 8fb5d82 commit a667b7c
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 12 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/LCL-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,22 @@ jobs:
name: Deploy Serveless API
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-python@v2
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- uses: aws-actions/setup-sam@v2
- uses: aws-actions/configure-aws-credentials@v1
- uses: aws-actions/configure-aws-credentials@v4
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
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
- name: npm install
run: npm install --prefix=dependencies/nodejs install --loglevel=verbose
- name: env encrpytion
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/test-LCL-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,22 @@ jobs:
name: Deploy Serveless API
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-python@v2
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- uses: aws-actions/setup-sam@v2
- uses: aws-actions/configure-aws-credentials@v1
- uses: aws-actions/configure-aws-credentials@v4
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
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
- name: npm install
run: npm install --prefix=dependencies/nodejs install --loglevel=verbose
- name: env encrpytion
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ language: python
python:
- '3.7'
node_js:
- '16'
- '20'
before_install:
- openssl aes-256-cbc -K $encrypted_a4267a9c202b_key -iv $encrypted_a4267a9c202b_iv -in .env.enc -out ./dependencies/nodejs/.env -d
install:
Expand Down
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: nodejs18.x
Runtime: nodejs20.x
Api:
Cors:
AllowMethods: "'POST, GET'"
Expand Down Expand Up @@ -102,5 +102,6 @@ Resources:
- nodejs12.x
- nodejs16.x
- nodejs18.x
- nodejs20.x
LicenseInfo: 'MIT'
RetentionPolicy: Retain

0 comments on commit a667b7c

Please sign in to comment.