Skip to content

Commit

Permalink
Upgrade to Node 18 runtimes (#1189)
Browse files Browse the repository at this point in the history
* Upgrade to Node 18 runtimes
Upgrade CDK to latest
Upgrade SDK to latest
Upgrade other packages to latest

* fix tests and prettier

* removed logger

* fixed prettier command

* update actions

* fixed yaml

* Update test

---------

Co-authored-by: Brian Crissup <[email protected]>
  • Loading branch information
hickeydh-aws and crissupb authored Oct 26, 2023
1 parent 8a21589 commit d940dfa
Show file tree
Hide file tree
Showing 278 changed files with 27,380 additions and 25,994 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ on:
pull_request:
branches:
- main

env:
NODE_OPTIONS: "--max-old-space-size=28000"
jobs:
test:
name: Test
Expand All @@ -17,7 +18,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 16
node-version: 18
- name: Cache Node.js modules
uses: actions/cache@v1
with:
Expand All @@ -28,7 +29,7 @@ jobs:
${{ runner.OS }}-
- name: Install Node.js modules
run: |
npm install -g pnpm@6.2.3
npm install -g pnpm@8.9.0
pnpm recursive install --frozen-lockfile
- name: Build all workspaces
run: |
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/lint-prettier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 16
node-version: 18
- name: Cache Node.js modules
uses: actions/cache@v1
with:
Expand All @@ -28,7 +28,7 @@ jobs:
${{ runner.OS }}-
- name: Install Node.js modules
run: |
npm install -g pnpm@6.2.3
npm install -g pnpm@8.9.0
pnpm install --frozen-lockfile
- name: Analyze TypeScript files
run: |
Expand All @@ -42,7 +42,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 16
node-version: 18
- name: Cache Node.js modules
uses: actions/cache@v1
with:
Expand All @@ -53,7 +53,7 @@ jobs:
${{ runner.OS }}-
- name: Install Node.js modules
run: |
npm install -g pnpm@6.2.3
npm install -g pnpm@8.9.0
pnpm install --frozen-lockfile
- name: Analyze TypeScript files
run: |
Expand All @@ -67,7 +67,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 16
node-version: 18
- name: Install Prettier
run: |
npm install -g [email protected]
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ on:
workflow_dispatch:
inputs:
generateDocOnly:
description: 'Generate documentation only. Unchecking this checkbox will have no impact, the documentation will still be only generated when the workflow is triggered manually.'
description: "Generate documentation only. Unchecking this checkbox will have no impact, the documentation will still be only generated when the workflow is triggered manually."
type: boolean
required: false
default: 'true'
default: true
push:
branches:
- 'release/v*'
- "release/v*"
jobs:
release:
name: Create Release
Expand Down Expand Up @@ -41,10 +41,10 @@ jobs:
env:
RUNNER_TEMP: /tmp/runner
with:
node-version: 16
node-version: 18
- name: Install pnpm
run: |
npm install -g pnpm@6.2.3
npm install -g pnpm@8.9.0
- name: Generate Changelog
id: changelog
env:
Expand Down Expand Up @@ -157,10 +157,10 @@ jobs:
env:
RUNNER_TEMP: /tmp/runner
with:
node-version: 16
node-version: 18
- name: Install pnpm
run: |
npm install -g pnpm@6.2.3
npm install -g pnpm@8.9.0
- name: Build SEA-Config-Schema project
id: build
env:
Expand Down Expand Up @@ -197,10 +197,10 @@ jobs:
env:
RUNNER_TEMP: /tmp/runner
with:
node-version: 16
node-version: 18
- name: Install pnpm
run: |
npm install -g pnpm@6.2.3
npm install -g pnpm@8.9.0
- name: Build SEA-GUI project
id: build
env:
Expand Down
2 changes: 1 addition & 1 deletion buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 0.2
phases:
install:
runtime-versions:
nodejs: 16
nodejs: 18
commands:
- echo "nothing to do in install"
pre_build:
Expand Down
2 changes: 1 addition & 1 deletion deployment/build-s3-dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ do_cmd cd $installer_dir
# do_cmd npm install aws-cdk@$cdk_version

# Install pnpm
do_cmd npm install -g pnpm@6.2.3
do_cmd npm install -g pnpm@8.9.0
do_cmd pnpm install

# Add local install to PATH
Expand Down
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@
"version": "0.0.1",
"scripts": {
"build": "pnpm recursive run --no-bail build",
"test": "pnpm recursive run --no-bail --workspace-concurrency 1 test -- --pass-with-no-tests --silent --max-workers 1",
"lint:typecheck": "pnpx tsc -p tsconfig.tsc.json ",
"test": "pnpm recursive run --no-bail --workspace-concurrency 1 test -- --pass-with-no-tests --silent --max-workers 1 --coverageProvider=v8 --clearCache --clearMocks",
"lint:typecheck": "pnpm exec tsc -p tsconfig.tsc.json ",
"lint:eslint": "pnpx eslint . --ext .ts,.tsx"
},
"devDependencies": {
"@types/node": "16.18.27",
"@typescript-eslint/eslint-plugin": "5.59.5",
"@typescript-eslint/parser": "5.59.5",
"eslint": "8.40.0",
"eslint-config-prettier": "8.8.0",
"eslint-plugin-deprecation": "1.4.1",
"eslint-plugin-import": "2.27.5",
"eslint-plugin-jsdoc": "44.0.1",
"@types/node": "20.8.0",
"@typescript-eslint/eslint-plugin": "6.7.3",
"@typescript-eslint/parser": "6.7.3",
"eslint": "8.50.0",
"eslint-config-prettier": "9.0.0",
"eslint-plugin-deprecation": "2.0.0",
"eslint-plugin-import": "2.28.1",
"eslint-plugin-jsdoc": "46.8.2",
"eslint-plugin-prefer-arrow": "1.2.3",
"eslint-plugin-react": "7.32.2",
"eslint-plugin-unicorn": "47.0.0",
"prettier": "2.8.8"
"eslint-plugin-react": "7.33.2",
"eslint-plugin-unicorn": "48.0.1",
"prettier": "3.0.3"
}
}
}
Loading

0 comments on commit d940dfa

Please sign in to comment.