Add VFR to IFR on top quick reference #897
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: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ${{ matrix.builds }} | |
strategy: | |
fail-fast: true | |
matrix: | |
builds: [client, server] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Use Node.js 20.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20.11.0" | |
cache: "npm" | |
cache-dependency-path: "${{ matrix.builds }}/package-lock.json" | |
- name: Install dependencies | |
run: npm ci | |
- name: Build ${{ matrix.builds }} | |
run: npm run build | |
- name: Lint ${{ matrix.builds }} | |
run: npm run lint | |
test: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: "server" | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Use Node.js 20 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20.11.0" | |
cache: "npm" | |
cache-dependency-path: "server/package-lock.json" | |
- name: Install dependencies | |
run: npm ci | |
- name: Test server | |
run: npm run test |