Skip to content

chore(deps): update actions/checkout action to v4 #197

chore(deps): update actions/checkout action to v4

chore(deps): update actions/checkout action to v4 #197

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
strategy:
matrix:
platform: [ubuntu-latest, windows-latest, macos-latest]
node-version: [12, 14, 16]
name: '${{ matrix.platform }}: node.js ${{ matrix.node-version }}'
runs-on: ${{ matrix.platform }}
steps:
- name: Begin CI...
uses: actions/checkout@v4
- name: Use Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Use cached node_modules
uses: actions/cache@v3
with:
path: node_modules
key: nodeModules-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
nodeModules-
- name: Install dependencies
run: npm ci
env:
CI: true
- name: Lint
if: ${{ matrix.platform != 'windows-latest' }}
run: npm run lint
env:
CI: true
- name: Test
run: npm test -- --ci --coverage --maxWorkers=2
env:
CI: true
- name: Build
run: npm run build
env:
CI: true