Skip to content

🚨 Include top-level config files in linting #17

🚨 Include top-level config files in linting

🚨 Include top-level config files in linting #17

Workflow file for this run

# This workflow will build the frontend with node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Build frontend
on:
push:
branches: [ "main" ]
paths:
- '.github/workflows/**'
- 'frontend/**'
pull_request:
branches: [ "main" ]
paths:
- '.github/workflows/**'
- 'frontend/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4 # see https://github.com/actions/setup-node
with:
node-version: '21.x'
cache: 'npm'
cache-dependency-path: "frontend"
- name: Clean install
working-directory: frontend
run: npm ci
- name: Lint
working-directory: frontend
run: npm run lint
- name: Build
working-directory: frontend
run: npm run build