-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update node version (v18, v20, v22) (#833)
* chore: move from ts-node to swc-loader fix: integration tests fix: use swc for both v18 & v20 refactor: remove ts-node * ci: update CI to run tests for v18,v20,v22 fix: matrix on tests only chore: no parallelism ci: add node version 22 * fix: several tests & mocks test: fix mocked socket test: update thrown error message fix: update mocks fix: flaky test tests: load package.json via fs * fix: resolve mock-fs fix: update mock-fs tests: update override adaptor tests to use tmp-dir test: fix collections test * test: collection tests & flaky test * tests: fix date output in integration test * set node 22 and setup corepack on pnpm8 * update integration test matrix and use corepack * fix yaml * fix ndoe versions * worker: bump image to node 22 * cli: type fix * compiler: update test fixture with trivial diff * tests: tweak test matrix * runtime: await module import properly * cli: fix failing unit test * cli: skipped tests that are broken by mock fs * cli: try to make docgen test a bit more stable in CI Or at least fail better * cli: another attempt to stabilze docgen * cli: give up and skip the flaky test * cli: skip another flaky test * tests: remove logging * compiler: remove .only * versions: [email protected] [email protected] * worker: fix version number output * version: @openfn/[email protected] * worker: typing * worker: fix package.json resolution * worker: typings * engine: update package json importer * version: [email protected] --------- Co-authored-by: Joe Clark <[email protected]>
- Loading branch information
1 parent
5b3e3e9
commit 93cdaaa
Showing
73 changed files
with
2,554 additions
and
2,696 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,14 +7,14 @@ jobs: | |
# Specify the execution environment. You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub. | ||
# See: https://circleci.com/docs/2.0/configuration-reference/#docker-machine-macos-windows-executor | ||
docker: | ||
- image: cimg/node:18.18 | ||
- image: cimg/node:22.12 | ||
resource_class: medium | ||
# Add steps to the job | ||
# See: https://circleci.com/docs/2.0/configuration-reference/#steps | ||
steps: | ||
- run: | ||
name: Install pnpm | ||
command: sudo corepack enable && corepack prepare [email protected] --activate | ||
command: sudo corepack enable | ||
- checkout | ||
- restore_cache: | ||
# See the configuration reference documentation for more details on using restore_cache and save_cache steps | ||
|
@@ -35,7 +35,7 @@ jobs: | |
|
||
build: | ||
docker: | ||
- image: cimg/node:18.18 | ||
- image: cimg/node:22.12 | ||
resource_class: medium | ||
steps: | ||
- attach_workspace: | ||
|
@@ -50,8 +50,9 @@ jobs: | |
|
||
unit_test: | ||
docker: | ||
- image: cimg/node:18.18 | ||
- image: cimg/node:22.12 | ||
resource_class: medium | ||
parallelism: 1 | ||
steps: | ||
- attach_workspace: | ||
at: ~/project | ||
|
@@ -61,7 +62,7 @@ jobs: | |
|
||
format: | ||
docker: | ||
- image: cimg/node:18.18 | ||
- image: cimg/node:22.12 | ||
resource_class: medium | ||
steps: | ||
- attach_workspace: | ||
|
@@ -72,7 +73,7 @@ jobs: | |
|
||
type_check: | ||
docker: | ||
- image: cimg/node:18.18 | ||
- image: cimg/node:22.12 | ||
resource_class: medium | ||
steps: | ||
- attach_workspace: | ||
|
@@ -83,8 +84,12 @@ jobs: | |
|
||
integration_test: | ||
docker: | ||
- image: cimg/node:18.18 | ||
- image: cimg/node:<< parameters.node_version >> | ||
resource_class: medium | ||
parallelism: 1 | ||
parameters: | ||
node_version: | ||
type: string | ||
steps: | ||
- attach_workspace: | ||
at: ~/project | ||
|
@@ -107,10 +112,10 @@ workflows: | |
build_and_test: | ||
jobs: | ||
- install: | ||
filters: | ||
branches: | ||
ignore: | ||
- main | ||
filters: | ||
branches: | ||
ignore: | ||
- main | ||
- build: | ||
requires: | ||
- install | ||
|
@@ -124,5 +129,10 @@ workflows: | |
requires: | ||
- build | ||
- integration_test: | ||
matrix: | ||
parameters: | ||
# temporarily test against a range of versions while we get over teh 18x hump | ||
# We can reduce this later | ||
node_version: ['18.12.1', '18.18', '20.18.1', '22.12'] | ||
requires: | ||
- build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
nodejs 18.12.1 | ||
nodejs 22.12.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "@openfn/integration-tests-execute", | ||
"private": true, | ||
"version": "1.0.11", | ||
"version": "1.0.12", | ||
"description": "Job execution tests", | ||
"author": "Open Function Group <[email protected]>", | ||
"license": "ISC", | ||
|
@@ -18,7 +18,6 @@ | |
"ava": "5.3.1", | ||
"date-fns": "^2.30.0", | ||
"rimraf": "^3.0.2", | ||
"ts-node": "10.8.1", | ||
"tslib": "^2.4.0", | ||
"typescript": "^5.1.6" | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "@openfn/integration-tests-worker", | ||
"private": true, | ||
"version": "1.0.69", | ||
"version": "1.0.72", | ||
"description": "Lightning WOrker integration tests", | ||
"author": "Open Function Group <[email protected]>", | ||
"license": "ISC", | ||
|
@@ -25,7 +25,6 @@ | |
"date-fns": "^2.30.0", | ||
"koa": "^2.13.4", | ||
"rimraf": "^3.0.2", | ||
"ts-node": "10.8.1", | ||
"tslib": "^2.4.0", | ||
"typescript": "^5.1.6" | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.