Skip to content

Commit

Permalink
chore(gh workflows): use node version 18.x
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammer5 committed Mar 25, 2024
1 parent b5c63f9 commit 7cecb00
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dhis2-preview-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/dhis2-verify-lib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions collections/forms/i18n/en.pot
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 7cecb00

Please sign in to comment.