Skip to content

Commit

Permalink
Fix the build for the new node version
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Dec 1, 2022
1 parent faa26a3 commit b6235ac
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,17 +95,26 @@ jobs:
- run: make lint
if: github.event_name != 'pull_request_target'
- run: make test
env:
NODE_OPTIONS: --openssl-legacy-provider
if: github.event_name != 'pull_request_target'
- run: make check-examples-checker
if: github.event_name != 'pull_request_target'
# Cypress tests
- run: make serve-gmf-apps &
if: github.event_name != 'pull_request_target'
- run: npm run test-cli
env:
NODE_OPTIONS: --openssl-legacy-provider
if: github.event_name != 'pull_request_target'
# Webpack build of ngeo/gmf examples and gmf apps
- run: NODE_ENV=production make examples-hosted
- run: make examples-hosted
env:
NODE_ENV: production
NODE_OPTIONS: --openssl-legacy-provider
- run: npm run build-storybook
env:
NODE_OPTIONS: --openssl-legacy-provider
- run: make check-examples
if: github.event_name != 'pull_request_target'
- uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -141,7 +150,11 @@ jobs:
- run: npm run doc -- srcapi/store/config.ts --json dist/typedoc.json
- run: npm run doc
- run: npm run build-api
env:
NODE_OPTIONS: --openssl-legacy-provider
- run: npm run dist
env:
NODE_OPTIONS: --openssl-legacy-provider
- run: npm run dist-spinner

- uses: actions/upload-artifact@v3
Expand All @@ -161,10 +174,13 @@ jobs:
- name: Publish Storybook to Chromatic to run visual tests
run: npm run chromatic -- --project-token=$(gopass show gs/ci/chromatic/ngeo_token)
if: env.HAS_SECRETS == 'HAS_SECRETS' && github.event_name == 'push'
env:
NODE_OPTIONS: --openssl-legacy-provider
- name: Publish Storybook to Chromatic to run visual tests
run: GITHUB_SHA=${GITHUB_SHA_} npm run chromatic -- --project-token=$(gopass show gs/ci/chromatic/ngeo_token) --branch-name=${GITHUB_HEAD_REF}
if: env.HAS_SECRETS == 'HAS_SECRETS' && github.event_name != 'push'
env:
NODE_OPTIONS: --openssl-legacy-provider
GITHUB_SHA_: ${{ steps.sha.outputs.sha }}

- name: Notify c2cgeoportal
Expand Down
1 change: 1 addition & 0 deletions ci/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
c2cciutils[checks]==1.3.12
urllib3==1.26.13 # not directly required, pinned by Snyk to avoid a vulnerability
setuptools>=65.5.1 # not directly required, pinned by Snyk to avoid a vulnerability
wheel==0.38.4

0 comments on commit b6235ac

Please sign in to comment.