Skip to content

ci(deps): bump actions/checkout from 3 to 4 #28

ci(deps): bump actions/checkout from 3 to 4

ci(deps): bump actions/checkout from 3 to 4 #28

Workflow file for this run

name: linting & test coverage
on:
push:
branches:
- main
pull_request:
env:
NODE_LATEST: 21.x
CI: true
defaults:
run:
shell: bash
jobs:
check:
strategy:
fail-fast: false
matrix:
node-version:
- 18.x
- 21.x
platform:
- ubuntu-latest
runs-on: ${{matrix.platform}}
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v3
with:
path: node_modules
key: ${{matrix.node-version}}@${{matrix.platform}}-build-${{hashFiles('package-lock.json')}}
restore-keys: |
${{matrix.node-version}}@${{matrix.platform}}-build-
- uses: actions/setup-node@v4
with:
node-version: ${{matrix.node-version}}
- run: npm install
- name: cache eslint for ${{matrix.node-version}}@${{matrix.platform}} (run on one platform only)
uses: actions/cache@v3
with:
path: .cache
key: ${{matrix.node-version}}@${{matrix.platform}}-build-eslint-${{hashFiles('package-lock.json')}}
restore-keys: |
${{matrix.node-version}}@${{matrix.platform}}-build-eslint-
if: matrix.platform == 'ubuntu-latest' && matrix.node-version == env.NODE_LATEST
- name: lint (run on one platform only)
if: matrix.platform == 'ubuntu-latest' && matrix.node-version == env.NODE_LATEST
run: npm run lint
- run: npm run test:cover
check-windows:
strategy:
fail-fast: false
matrix:
platform:
- windows-latest
runs-on: ${{matrix.platform}}
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v3
with:
path: node_modules
key: ${{env.NODE_LATEST}}@${{matrix.platform}}-build-${{hashFiles('package-lock.json')}}
restore-keys: |
${{env.NODE_LATEST}}@${{matrix.platform}}-build-
- uses: actions/setup-node@v4
with:
node-version: ${{env.NODE_LATEST}}
- run: npm install
- run: npm run test:cover