Refactor navbar + reusable button components #42
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
# This workflow will run on all pull requests to 'main' | |
name: on-pull-request | |
on: | |
pull_request: | |
branches: | |
- 'main' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x, 20.x] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
# Frontend Build | |
- name: Install frontend dependencies | |
run: | | |
cd frontend | |
npm ci | |
- name: Lint frontend | |
run: | | |
cd frontend | |
npm run lint | |
- name: Build frontend | |
run: | | |
cd frontend | |
npm run build --if-present | |
- name: Run frontend tests | |
run: | | |
cd frontend | |
npm test | |
# Backend Build | |
- name: Install backend dependencies | |
run: | | |
cd backend | |
npm ci | |
- name: Lint backend | |
run: | | |
cd backend | |
npm run lint | |
- name: Build backend | |
run: | | |
cd backend | |
npm run build --if-present | |
- name: Run backend tests | |
run: | | |
cd backend | |
npm test | |