Skip to content

Commit

Permalink
Update node to 20 (#305)
Browse files Browse the repository at this point in the history
  • Loading branch information
anttiharju authored Aug 12, 2024
1 parent 488fa64 commit f2ef25b
Show file tree
Hide file tree
Showing 6 changed files with 4,470 additions and 2,460 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Set Node.js 16.x
- name: Set Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 16.x
node-version: 20.x
- name: "Install"
run: |
npm ci
Expand All @@ -32,10 +32,10 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Set Node.js 16.x
- name: Set Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 16.x
node-version: 20.x
- name: "Build action for test"
run: |
npm ci
Expand Down
8 changes: 4 additions & 4 deletions __tests__/bundle-size.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,22 @@ nock('http://assets.example')
.head('/prototype.js')
.reply(200, undefined, {
// @ts-ignore
'Content-Length': 123456
'Content-Length': '123456'
})
.head('/scriptaculous.js')
.reply(200, undefined, {
// @ts-ignore
'Content-Length': 654321
'Content-Length': '654321'
})
.head('/blueprint.css')
.reply(200, undefined, {
// @ts-ignore
'Content-Length': 1000000
'Content-Length': '1000000'
})
.head('/error.js')
.reply(404, undefined, {
// @ts-ignore
'Content-Length': 1
'Content-Length': '1'
})

describe('bundleSize', () => {
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ outputs:
size:
description: "Size in bytes of the full build bundle"
runs:
using: 'node16'
using: 'node20'
main: 'dist/index.js'
Loading

0 comments on commit f2ef25b

Please sign in to comment.