Skip to content

Upgrade npm

Upgrade npm #1419

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '0 2 * * 5'
workflow_dispatch:
inputs:
reason:
description: 'Reason'
required: false
default: 'Manual trigger'
jobs:
Tests:
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: [20.x]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: npm ci --legacy-peer-deps
- name: Lint
run: npm run lint
env:
# avoid fail on warnings
CI: false
- name: Test
run: npm test
- name: Coverage
run: npm test -- --coverage
- name: Build
run: npm run build
env:
# avoid fail on warnings
CI: false