Skip to content

chore: update gh actions #62

chore: update gh actions

chore: update gh actions #62

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: ['lts/*', 'current']
steps:
- name: Begin CI...
uses: actions/checkout@v4
- name: Use Node ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Use cached node_modules
uses: actions/cache@v4
with:
path: node_modules
key: nodeModules-${{ hashFiles('**/package-lock.json') }}-${{ matrix.node }}
restore-keys: |
nodeModules-
- name: Install dependencies
run: npm ci
env:
CI: true
- name: Lint
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