From 7088a990a29487af62ddc5d47f52bd10f88ef8b0 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.1 LTS 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 f856b2546..10ae047b0 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.1' - 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 5f37b8f37..777323448 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.1' - 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 a4f9ddf2b..921a6919e 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.1' - 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 dce899328..528efc48a 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.1' - name: Checkout uses: actions/checkout@v2 - run: npm ci diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index a4ab1b096..691c45c9a 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.1' - uses: actions/checkout@v2 - run: npm ci - run: npm run check diff --git a/.nvmrc b/.nvmrc index b6a7d89c6..b460d6f2d 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -16 +18.12.1 diff --git a/.tool-versions b/.tool-versions index 1237b21d3..5686ee0db 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1 +1 @@ -nodejs 16.13.2 +nodejs 18.12.1 diff --git a/package-lock.json b/package-lock.json index 05f3f88af..44f71236a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -49,7 +49,7 @@ "vitest": "^0.24.5" }, "engines": { - "node": ">=14" + "node": ">=18.12.1" } }, "node_modules/@colors/colors": { diff --git a/package.json b/package.json index 429145447..783b5a11f 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ }, "type": "module", "engines": { - "node": ">=14" + "node": ">=18.12.1" }, "devDependencies": { "@rsksmart/mock-web3-provider": "^1.0.1", diff --git a/vite.config.ts b/vite.config.ts index 781af3992..a88f2a106 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -26,6 +26,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: {