Skip to content

Commit

Permalink
mv to node 22 as base, and test on node 20, 22, and 23
Browse files Browse the repository at this point in the history
node 22 becomes LTS next week
no longer test on node 18
  • Loading branch information
jandppw committed Oct 25, 2024
1 parent 7050f75 commit 7329367
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
22
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ from `17.13.1`, and we know that that contains a breaking change._
- add `validateAndStripUnknowns` to work around
[breaking changes in version `17.13.2`](https://github.com/hapijs/joi/pull/3037)
- upgrade `joi` to `17.13.3`
- now tested on Node 20, 22, and 23, and no longer on Node 18 (Node 22 becomes LTS next week)

## 11

Expand Down
69 changes: 55 additions & 14 deletions bitbucket-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,63 @@
image: node:18
image: node:22

definitions:
caches:
npm18: ~/.npm
npm20:
key:
files:
- package-lock.json
path: ~/.npm
npm22:
key:
files:
- package-lock.json
path: ~/.npm
npm23:
key:
files:
- package-lock.json
path: ~/.npm
steps:
- step: &test
name: Test on Latest Node nn
image: IMAGE
caches:
- npm22
script:
- git submodule update --init
- scripts/common/npm/testCi.sh
- step: &tagAndPush
name: Tag And Push to GitHub
max-time: 2
artifacts:
download: false
script:
- scripts/common/git/tagBitbucket.sh
# MUDO push fails silently on remote: FIX ASAP
- scripts/common/git/pushToRemote.sh https://${GITHUB_CREDENTIALS}@github.com/peopleware/openapi.git
branches:
- branch: &testAndTag
- step:
runs-on:
- 'self.hosted'
name: Test
caches:
- node
- npm18
script:
- git submodule update --init
- scripts/common/npm/testCi.sh
- scripts/common/git/tagBitbucket.sh
- scripts/common/git/pushToRemote.sh https://${GITHUB_CREDENTIALS}@github.com/peopleware/openapi.git
- parallel:
steps:
- step:
<<: *test
name: Latest Node 20
image: node:20
caches:
- npm20
- step:
<<: *test
name: Latest Node 22
image: node:22
caches:
- npm22
- step:
<<: *test
name: Latest Node 23
image: node:23
caches:
- npm23
- step: *tagAndPush
pipelines:
branches:
master: *testAndTag
Expand Down

0 comments on commit 7329367

Please sign in to comment.