From f07c9bc5703829a67166e2d4e9f1e473dd7279da Mon Sep 17 00:00:00 2001 From: poonam yadav Date: Thu, 11 Jan 2024 17:14:53 +0530 Subject: [PATCH] ELEMENTS-1706: nodejs upgrade - rebase into lts2023 from lts2021 --- .github/workflows/cross-repo.yaml | 2 +- .github/workflows/lint.yaml | 2 +- .github/workflows/main.yaml | 2 +- .github/workflows/preview.yaml | 2 +- .github/workflows/promote.yaml | 2 +- .github/workflows/storybook.yaml | 5 ++++- .github/workflows/test.yaml | 2 +- karma.conf.js | 1 + package.json | 3 ++- 9 files changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/cross-repo.yaml b/.github/workflows/cross-repo.yaml index 376b02df4..6eb4ecfed 100644 --- a/.github/workflows/cross-repo.yaml +++ b/.github/workflows/cross-repo.yaml @@ -36,7 +36,7 @@ jobs: inputs: | branch_name: ${{ env.BRANCH_NAME }} sauce_labs: true - skip_ftests: false + skip_ftests: true skip_a11y: false skip_unit_tests: false generate_metrics: false diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index be05c20b8..1ed4a1a37 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -29,7 +29,7 @@ jobs: - uses: actions/setup-node@v3 with: - node-version: 14 + node-version: 18 registry-url: 'https://packages.nuxeo.com/repository/npm-public/' scope: '@nuxeo' diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 8039f9cb6..8c9f8692f 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -41,7 +41,7 @@ jobs: - uses: actions/setup-node@v3 with: - node-version: 14 + node-version: 18 registry-url: 'https://packages.nuxeo.com/repository/npm-public/' scope: '@nuxeo' diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index 5ac5ac20e..fa6515ec0 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -21,7 +21,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v3 with: - node-version: 14 + node-version: 18 registry-url: 'https://packages.nuxeo.com/repository/npm-public/' scope: '@nuxeo' diff --git a/.github/workflows/promote.yaml b/.github/workflows/promote.yaml index 50bc72066..df1131f25 100644 --- a/.github/workflows/promote.yaml +++ b/.github/workflows/promote.yaml @@ -24,7 +24,7 @@ jobs: steps: - uses: actions/setup-node@v3 with: - node-version: 14 + node-version: 18 registry-url: 'https://packages.nuxeo.com/repository/npm-public/' scope: '@nuxeo' diff --git a/.github/workflows/storybook.yaml b/.github/workflows/storybook.yaml index ddd10ffd1..800a52888 100644 --- a/.github/workflows/storybook.yaml +++ b/.github/workflows/storybook.yaml @@ -29,7 +29,7 @@ jobs: - uses: actions/setup-node@v3 with: - node-version: 14 + node-version: 18 registry-url: 'https://packages.nuxeo.com/repository/npm-public/' scope: '@nuxeo' @@ -45,6 +45,8 @@ jobs: - name: Build storybook working-directory: storybook + env: + NODE_OPTIONS: --openssl-legacy-provider run: | npx build-storybook -o dist -s ./public @@ -52,5 +54,6 @@ jobs: if: ${{ env.BRANCH_NAME == 'maintenance-3.1.x' }} env: GH_TOKEN: ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }} + NODE_OPTIONS: --openssl-legacy-provider working-directory: storybook run: npm run deploy -- --ci diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 0260e1d06..fe11a032a 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -32,7 +32,7 @@ jobs: - uses: actions/setup-node@v3 with: - node-version: 14 + node-version: 18 registry-url: 'https://packages.nuxeo.com/repository/npm-public/' scope: '@nuxeo' diff --git a/karma.conf.js b/karma.conf.js index ddca2e34e..2b79b4629 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -50,6 +50,7 @@ module.exports = (config) => { config.set({ sauceLabs, + hostname: '127.0.0.1', basePath: '', singleRun: true, browsers: config.browsers && config.browsers.length > 0 ? config.browsers : Object.keys(customLaunchers), diff --git a/package.json b/package.json index a216c5552..1667cee4a 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "author": "Nuxeo", "license": "Apache-2.0", "engines": { - "node": ">=14.0.0" + "node": ">=18.0.0" }, "scripts": { "postinstall": "check-engine --ignore", @@ -84,6 +84,7 @@ "dependencies": { "@nuxeo/moment": "^2.24.0-nx.0", "@nuxeo/paper-typeahead": "^0.6.0-nx.0", + "@nuxeo/testing-helpers": "^3.0.17", "@polymer/iron-autogrow-textarea": "^3.0.1", "@polymer/iron-collapse": "^3.0.0", "@polymer/iron-flex-layout": "^3.0.0",