chore: use node 18 (#11093)
* chore: use node 18 npm pushlish will still use node 16 * fix: openssl3 workaround * fix: exit cleanly for node 18
This commit is contained in:
parent
ed08cefe30
commit
4fef0bbd3d
|
|
@ -15,10 +15,10 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Use Node.js v16
|
||||
- name: Use Node.js v18
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
node-version: 18
|
||||
cache: 'yarn'
|
||||
- name: Build file
|
||||
run: yarn && npm run build:all
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ jobs:
|
|||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3 # just need its cache
|
||||
with:
|
||||
node-version: 16
|
||||
node-version: 18
|
||||
cache: 'yarn'
|
||||
- name: Install dependencies (yarn) # needed since we need to parse markdown, so we also use got instead
|
||||
run: yarn
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ jobs:
|
|||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
node-version: 18
|
||||
cache: 'yarn'
|
||||
- run: yarn install
|
||||
- run: npm run format
|
||||
|
|
|
|||
|
|
@ -48,10 +48,10 @@ jobs:
|
|||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Use Node.js v16
|
||||
- name: Use Node.js v18
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
node-version: 18
|
||||
cache: 'yarn'
|
||||
|
||||
- name: Install dependencies (yarn)
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ jobs:
|
|||
- uses: actions/setup-node@v3 # just need its cache
|
||||
if: (env.TEST_CONTINUE)
|
||||
with:
|
||||
node-version: 16
|
||||
node-version: 18
|
||||
cache: 'yarn'
|
||||
|
||||
- name: Install dependencies (yarn) # `got` needed since `github.request` disallows HTTP requests
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ jobs:
|
|||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
node-version: 18
|
||||
cache: 'yarn'
|
||||
- run: yarn
|
||||
- name: Lint
|
||||
|
|
@ -24,7 +24,7 @@ jobs:
|
|||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
node-version: 18
|
||||
cache: 'yarn'
|
||||
- run: yarn
|
||||
- name: Lint
|
||||
|
|
|
|||
|
|
@ -17,13 +17,6 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Use Node.js v16
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
cache: 'yarn'
|
||||
- name: Install dependencies (yarn)
|
||||
run: yarn
|
||||
- name: Pull image
|
||||
run: docker pull getmeili/docs-scraper
|
||||
- name: Wait for Netlify to finish
|
||||
|
|
|
|||
|
|
@ -28,8 +28,9 @@ jobs:
|
|||
- 6379/tcp
|
||||
options: --entrypoint redis-server
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
node-version: [ 14, 16 ]
|
||||
node-version: [ 14, 16, 18 ]
|
||||
name: Jest on Node ${{ matrix.node-version }}
|
||||
steps:
|
||||
- name: Collect Workflow Telemetry
|
||||
|
|
@ -49,7 +50,7 @@ jobs:
|
|||
env:
|
||||
REDIS_URL: redis://localhost:${{ job.services.redis.ports[6379] }}/
|
||||
- name: Upload coverage to Codecov
|
||||
if: ${{ matrix.node-version == '16' }}
|
||||
if: ${{ matrix.node-version == '18' }}
|
||||
uses: codecov/codecov-action@v3
|
||||
with:
|
||||
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos as documented, but seems broken
|
||||
|
|
@ -68,7 +69,7 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
node-version: [ 14, 16 ]
|
||||
node-version: [ 14, 16, 18 ]
|
||||
chromium:
|
||||
- name: bundled Chromium
|
||||
dependency: ''
|
||||
|
|
@ -108,8 +109,9 @@ jobs:
|
|||
docs:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
node-version: [ 14, 16 ]
|
||||
node-version: [ 14, 16, 18 ]
|
||||
name: Build docs on Node ${{ matrix.node-version }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
|
@ -118,14 +120,21 @@ jobs:
|
|||
node-version: ${{ matrix.node-version }}
|
||||
cache: 'yarn'
|
||||
- run: yarn
|
||||
- name: Set environment variable for Node v18
|
||||
if: ${{ matrix.node-version == '18' }}
|
||||
run: echo "NODE_OPTIONS=--openssl-legacy-provider" >> $GITHUB_ENV
|
||||
- name: Build docs
|
||||
run: npm run docs:build
|
||||
- name: Unset environment variable for Node v18
|
||||
if: ${{ matrix.node-version == '18' }}
|
||||
run: echo "NODE_OPTIONS=''" >> $GITHUB_ENV
|
||||
|
||||
all:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
node-version: [ 14, 16 ]
|
||||
node-version: [ 14, 16, 18 ]
|
||||
name: Build radar and maintainer on Node ${{ matrix.node-version }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
|
|
|||
Loading…
Reference in New Issue