Cache type model #321
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: pr-build | |
on: | |
pull_request: | |
paths-ignore: | |
- "docs/" | |
- "**.md" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: Build | |
runs-on: ${{ matrix.os }} | |
strategy: | |
# Stop remaining runs when a build fails that is not experimental | |
fail-fast: true | |
matrix: | |
# Run the pipeline on all the currently supported OS versions | |
os: [ubuntu-latest] | |
# Run the pipeline on all the currently supported LTS versions and the upcoming version | |
node-version: [lts/*] | |
# Run the pipeline on all the currently supported architectures | |
architecture: [x64] | |
steps: | |
# Cloning | |
- uses: actions/checkout@v3 | |
# Setup and Caching | |
- name: Use Node.js ${{ matrix.node-version }} (${{ matrix.architecture }}) | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
architecture: ${{ matrix.architecture }} | |
# NPM Cache using all package-lock files as hash | |
cache: "npm" | |
cache-dependency-path: "**/package-lock.json" | |
# Dependencies | |
- name: SynTest - Install Dependencies | |
run: npm ci | |
# Building | |
- name: SynTest - Build | |
run: npm run build |