From f5871119b426e45bee0ccbbd1ca4a799b434bc4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C5=ABdolfs=20O=C5=A1i=C5=86=C5=A1?= Date: Fri, 23 Sep 2022 17:06:35 +0200 Subject: [PATCH] Use node 18.12.0 everywhere consistently MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rūdolfs Ošiņš --- .github/workflows/check-build.yml | 4 ++++ .github/workflows/check-format.yml | 4 ++++ .github/workflows/check-integration-test.yml | 2 +- .github/workflows/check-unit-test.yml | 2 +- .github/workflows/check.yml | 4 ++++ .nvmrc | 2 +- .tool-versions | 2 +- package-lock.json | 2 +- package.json | 2 +- vite.config.ts | 3 +++ 10 files changed, 21 insertions(+), 6 deletions(-) diff --git a/.github/workflows/check-build.yml b/.github/workflows/check-build.yml index f856b25461..ecf64d7e4b 100644 --- a/.github/workflows/check-build.yml +++ b/.github/workflows/check-build.yml @@ -5,6 +5,10 @@ jobs: check-build: runs-on: ubuntu-latest steps: + - name: Setup Node + uses: actions/setup-node@v1 + with: + node-version: '18.12.0' - uses: actions/checkout@v2 - run: npm ci - run: npm run build diff --git a/.github/workflows/check-format.yml b/.github/workflows/check-format.yml index 5f37b8f375..22619a68b8 100644 --- a/.github/workflows/check-format.yml +++ b/.github/workflows/check-format.yml @@ -5,6 +5,10 @@ jobs: check-format: runs-on: ubuntu-latest steps: + - name: Setup Node + uses: actions/setup-node@v1 + with: + node-version: '18.12.0' - uses: actions/checkout@v2 - run: npm ci - run: ./scripts/check-format diff --git a/.github/workflows/check-integration-test.yml b/.github/workflows/check-integration-test.yml index a4f9ddf2b6..9a51618476 100644 --- a/.github/workflows/check-integration-test.yml +++ b/.github/workflows/check-integration-test.yml @@ -8,7 +8,7 @@ jobs: - name: Setup Node uses: actions/setup-node@v1 with: - node-version: '16.16.0' + node-version: '18.12.0' - name: Checkout uses: actions/checkout@v2 - name: Cypress run diff --git a/.github/workflows/check-unit-test.yml b/.github/workflows/check-unit-test.yml index dce8993284..60105237c4 100644 --- a/.github/workflows/check-unit-test.yml +++ b/.github/workflows/check-unit-test.yml @@ -8,7 +8,7 @@ jobs: - name: Setup Node uses: actions/setup-node@v1 with: - node-version: '16.16.0' + node-version: '18.12.0' - name: Checkout uses: actions/checkout@v2 - run: npm ci diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index a4ab1b0966..a84b88f83f 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -5,6 +5,10 @@ jobs: check: runs-on: ubuntu-latest steps: + - name: Setup Node + uses: actions/setup-node@v1 + with: + node-version: '18.12.0' - uses: actions/checkout@v2 - run: npm ci - run: npm run check diff --git a/.nvmrc b/.nvmrc index b6a7d89c68..3e558c9b3c 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -16 +18.12.0 diff --git a/.tool-versions b/.tool-versions index 1237b21d3f..100be2d5d5 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1 +1 @@ -nodejs 16.13.2 +nodejs 18.12.0 diff --git a/package-lock.json b/package-lock.json index a89b2a0835..f3645ac07c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -50,7 +50,7 @@ "vitest": "^0.24.3" }, "engines": { - "node": ">=14" + "node": ">=18.10.0" } }, "node_modules/@colors/colors": { diff --git a/package.json b/package.json index 19f85a2407..844f015bd4 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ }, "type": "module", "engines": { - "node": ">=14" + "node": ">=18.12.0" }, "devDependencies": { "@rsksmart/mock-web3-provider": "^1.0.1", diff --git a/vite.config.ts b/vite.config.ts index 7783f64081..5a165e95f9 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -30,6 +30,9 @@ const config: UserConfig = { pluginRewriteAll(), ], server: { + // We have to set host here, otherwise CI binds to the ipv6 address and + // e2e tests don't work. + host: "127.0.0.1", port: 3000, }, resolve: {