Skip to content

Issue-430 - Add shared node setup / module cache #329

Issue-430 - Add shared node setup / module cache

Issue-430 - Add shared node setup / module cache #329

Workflow file for this run

name: Node CI
on: [push, pull_request]
jobs:
install-deps:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/configure-nodejs
with:
node-version: ${{ matrix.node-version }}
lookup-only: 'true' # We only want to lookup from the cache - if a hit, this job does nothing
build:
needs:
- install-deps
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/configure-nodejs
with:
node-version: ${{ matrix.node-version }}
- run: npm run build --if-present
- run: npm run test:full