Skip to content

Update dependency node to v20 #1971

Update dependency node to v20

Update dependency node to v20 #1971

Workflow file for this run

name: Build
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['18', '20', '21']
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Reconfigure git to use HTTP authentication
run: >
git config --global url."https://github.com/".insteadOf
ssh://git@github.com/
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: npm install, build and test
run: |
npm ci
npm run lint
npm run prettier:check
npm run build
NODE_OPTIONS="--max_old_space_size=4096" npm run test:ci
env:
CI: true