From e9822bc11df17600fee9ad614285c824af109f35 Mon Sep 17 00:00:00 2001 From: Mohammer5 Date: Thu, 21 Mar 2024 17:20:26 +0800 Subject: [PATCH] chore(gh workflows): use node version 18.x --- .github/workflows/dhis2-preview-pr.yml | 4 ++-- .github/workflows/dhis2-verify-lib.yml | 18 +++++++++--------- collections/forms/i18n/en.pot | 4 ++-- package.json | 4 +++- 4 files changed, 16 insertions(+), 14 deletions(-) diff --git a/.github/workflows/dhis2-preview-pr.yml b/.github/workflows/dhis2-preview-pr.yml index b04d2130a3..ac006a0b9c 100644 --- a/.github/workflows/dhis2-preview-pr.yml +++ b/.github/workflows/dhis2-preview-pr.yml @@ -24,12 +24,12 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: - node-version: 14.x + node-version: 18.x - uses: c-hive/gha-yarn-cache@v1 - run: yarn install --frozen-lockfile - - run: yarn build + - run: yarn build:legacy - name: Deploy id: netlify-deploy diff --git a/.github/workflows/dhis2-verify-lib.yml b/.github/workflows/dhis2-verify-lib.yml index 589461a2b5..4127fff4bd 100644 --- a/.github/workflows/dhis2-verify-lib.yml +++ b/.github/workflows/dhis2-verify-lib.yml @@ -21,15 +21,15 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: - node-version: 14.x + node-version: 18.x - uses: c-hive/gha-yarn-cache@v1 - run: | yarn install --frozen-lockfile - yarn setup + NODE_OPTIONS=--openssl-legacy-provider yarn setup - name: Build - run: yarn build + run: NODE_OPTIONS=--openssl-legacy-provider yarn build - run: ./scripts/create-artifact.sh @@ -46,7 +46,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: - node-version: 14.x + node-version: 18.x - uses: actions/download-artifact@v2 with: @@ -67,7 +67,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: - node-version: 14.x + node-version: 18.x - uses: actions/download-artifact@v2 with: @@ -97,7 +97,7 @@ jobs: - uses: actions/setup-node@v1 with: - node-version: 14.x + node-version: 18.x - uses: actions/download-artifact@v2 with: @@ -109,10 +109,10 @@ jobs: run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p - name: End-to-End tests - uses: cypress-io/github-action@v2 + uses: cypress-io/github-action@v6 with: # This should be a command that starts the server to test against. - start: 'yarn cy:start' + start: 'yarn cy:start:legacy' wait-on: 'http://localhost:5000' wait-on-timeout: 300 record: true @@ -136,7 +136,7 @@ jobs: token: ${{env.GH_TOKEN}} - uses: actions/setup-node@v3 with: - node-version: 14.x + node-version: 18.x cache: 'yarn' - uses: actions/download-artifact@v2 diff --git a/collections/forms/i18n/en.pot b/collections/forms/i18n/en.pot index e9e2f44c4f..1c9c9fcc12 100644 --- a/collections/forms/i18n/en.pot +++ b/collections/forms/i18n/en.pot @@ -5,8 +5,8 @@ msgstr "" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1)\n" -"POT-Creation-Date: 2024-03-21T01:41:39.370Z\n" -"PO-Revision-Date: 2024-03-21T01:41:39.370Z\n" +"POT-Creation-Date: 2024-03-21T09:13:47.826Z\n" +"PO-Revision-Date: 2024-03-21T09:13:47.826Z\n" msgid "Upload file" msgstr "Upload file" diff --git a/package.json b/package.json index 4a8cf6248f..2743c9e2db 100644 --- a/package.json +++ b/package.json @@ -28,12 +28,14 @@ "scripts": { "setup": "./scripts/setup.js", "build": "./scripts/build-world.sh", + "build:legacy": "NODE_OPTIONS=--openssl-legacy-provider ./scripts/build-world.sh", "build:lib": "./scripts/build.js", "build:docs": "./scripts/build-docs.js", "build:api": "./scripts/generate-api-docs.js", + "cy:start:legacy": "NODE_OPTIONS=--openssl-legacy-provider yarn cy:start", "cy:start": "yarn build:lib && STORYBOOK_TESTING=1 yarn start", "cy:open": "wait-on 'http://localhost:5000' && cypress open", - "cy:run": "wait-on 'http://localhost:5000' && cypress run", + "cy:run": "wait-on 'http://localhost:5000' && cypress run --config-file=cypress.config.js", "cy:test": "./scripts/cypress.js", "format": "d2-style apply", "format:staged": "d2-style apply --staged",