This repository has been archived by the owner on Jan 17, 2025. It is now read-only.
ci: build with Node 16 #155
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: Build | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- '.github/workflows/fill-gh-draft-release.yml' | |
- '.gitignore' | |
- 'docs/**' | |
- '*.md' | |
- LICENSE | |
pull_request: | |
branches: | |
- main | |
paths-ignore: | |
- '.github/workflows/fill-gh-draft-release.yml' | |
- '.gitignore' | |
- 'docs/**' | |
- '*.md' | |
- LICENSE | |
jobs: | |
build: | |
runs-on: ${{ matrix.os.name }} | |
strategy: | |
# we want to run the full build on all os: don't cancel running jobs even if one fails | |
fail-fast: false | |
matrix: | |
# syntax inspired from https://github.community/t5/GitHub-Actions/Using-a-matrix-defined-input-for-a-custom-action/m-p/32032/highlight/true#M988 | |
os: | |
- { name: ubuntu-latest} | |
- { name: macos-latest } | |
- { name: windows-latest } | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16.x | |
- name: Verify node, npm version | |
run: | | |
node --version | |
npm --version | |
- name: Install dependencies | |
run: npm ci | |
- name: Lint check | |
run: npm run lint-check | |
- name: Build Application | |
run: npm run build |