diff --git a/.github/workflows/build-assets.yml b/.github/workflows/build-assets.yml index 2eaa3e058..e2cca4f40 100644 --- a/.github/workflows/build-assets.yml +++ b/.github/workflows/build-assets.yml @@ -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 diff --git a/.github/workflows/comment-on-issue.yml b/.github/workflows/comment-on-issue.yml index 4fa53662f..2daff156b 100644 --- a/.github/workflows/comment-on-issue.yml +++ b/.github/workflows/comment-on-issue.yml @@ -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 diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 7c1362e58..521489465 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -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 diff --git a/.github/workflows/issue-command.yml b/.github/workflows/issue-command.yml index 6c5bce954..38e406101 100644 --- a/.github/workflows/issue-command.yml +++ b/.github/workflows/issue-command.yml @@ -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) diff --git a/.github/workflows/pr-deploy-route-test.yml b/.github/workflows/pr-deploy-route-test.yml index 797c65868..f00dfc34e 100644 --- a/.github/workflows/pr-deploy-route-test.yml +++ b/.github/workflows/pr-deploy-route-test.yml @@ -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 diff --git a/.github/workflows/pr-lint.yml b/.github/workflows/pr-lint.yml index 2571c4d7b..f89b8d254 100644 --- a/.github/workflows/pr-lint.yml +++ b/.github/workflows/pr-lint.yml @@ -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 diff --git a/.github/workflows/scrape.yml b/.github/workflows/scrape.yml index cca7122b3..f51df07d7 100644 --- a/.github/workflows/scrape.yml +++ b/.github/workflows/scrape.yml @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4c4d98376..53fadb8b3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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