Skip to content

Commit

Permalink
chore(deps): update node.js to v22 (#1894)
Browse files Browse the repository at this point in the history
* chore(deps): update node.js to v22

* update workflow node versions

* enable check-latest for unit tests

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Austin Burdine <[email protected]>
  • Loading branch information
renovate[bot] and acburdine authored Nov 14, 2024
1 parent 077f627 commit 6c034ed
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ jobs:
matrix:
os: [ubuntu-20.04]
password: [root]
node: [18.x]
node: [20.x]
steps:
- name: Start nginx
run: sudo service nginx start
- name: Updating hosts file
run: 'echo -e "127.0.0.1 cli-testing.ghost.org\n" | sudo tee -a /etc/hosts'
- uses: actions/checkout@v4
with:
path: 'cli'
path: "cli"
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/local-e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ jobs:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node: ['18.x']
node: [20.x]
steps:
- uses: actions/checkout@v4
with:
path: 'cli'
path: "cli"
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
Expand All @@ -31,4 +31,3 @@ jobs:
run: node ./cli/bin/ghost install local -d ghost
- name: Verifying Installation
run: sleep 2 && curl -f http://localhost:2368 | grep ghost

4 changes: 3 additions & 1 deletion .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ 18.x, 20.x ]
node: [18.x, 20.x, 22.x]
env:
FORCE_COLOR: 1
name: Node ${{ matrix.node }}
Expand All @@ -18,6 +18,8 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
# temporary, remove this once the cached node 22.x version is updated with lts
check-latest: true
cache: yarn
env:
FORCE_COLOR: 0
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
]
},
"engines": {
"node": "^12.22.1 || ^14.17.0 || ^16.13.0 || ^18.0.0 || ^20.11.1"
"node": "^12.22.1 || ^14.17.0 || ^16.13.0 || ^18.0.0 || ^20.11.1 || ^22.11.0"
},
"preferGlobal": true,
"dependencies": {
Expand Down

0 comments on commit 6c034ed

Please sign in to comment.