Skip to content

pre-commit: Autoupdate #1259

pre-commit: Autoupdate

pre-commit: Autoupdate #1259

name: Build and lint frontend
on:
pull_request:
push:
schedule:
- cron: '0 16 * * 5' # Every Friday 4pm
workflow_dispatch:
jobs:
build_and_lint_frontend:
name: Build and lint frontend
runs-on: ubuntu-24.04
defaults:
run:
working-directory: jawanndenn/frontend/
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
with:
node-version: 23
- name: Install Node dependencies
run: |-
npm ci
- name: Build the frontend
run: |-
npm run build
- name: Lint frontend files
run: |-
npm run lint
- name: Enforce that all files match auto-formatting
run: |-
npm run format
git diff --exit-code # i.e. fail CI if there is a diff
- name: Enforce that file package-lock.json remains in sync
run: |-
npm install --package-lock-only
git diff --exit-code # i.e. fail CI if there is a diff