Skip to content

chore(deps): update node.js to v20 #2176

chore(deps): update node.js to v20

chore(deps): update node.js to v20 #2176

Workflow file for this run

name: Build and run unit tests
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
runs-on: ubuntu-latest
name: Build
steps:
- name: checkout
uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: install node
uses: actions/setup-node@v3
with:
node-version: '16'
registry-url: 'https://npm.pkg.github.com'
- name: install dependencies
env:
GITHUB_PACKAGES_PAT: ${{ secrets.GITHUB_TOKEN }}
run: yarn --immutable
- name: run build
run: yarn build
- name: run eslint
run: yarn lint
- name: run tests
run: yarn test --coverage
- name: Codecov
uses: codecov/[email protected]
with:
directory: ./coverage
fail_ci_if_error: true