Skip to content

Bump eslint-config-beslogic to 3.0 and drop-pre-commit #58

Bump eslint-config-beslogic to 3.0 and drop-pre-commit

Bump eslint-config-beslogic to 3.0 and drop-pre-commit #58

name: Frontend PR validation
on:
push:
branches:
- main
paths:
- "canopeum_frontend/**"
- ".github/workflows/canopeum_frontend_pr_validation.yml"
pull_request:
branches:
- main
- production
paths:
- "canopeum_frontend/**"
- ".github/workflows/canopeum_frontend_pr_validation.yml"
jobs:
Lint-Autofixes:
runs-on: ubuntu-latest
defaults:
run:
working-directory: canopeum_frontend
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- run: npm ci
- run: npm run lint:fix
- name: Commit autofixes
uses: EndBug/add-and-commit@v9
# Push autofixes even on failure
if: always()
Build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: canopeum_frontend
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- run: npm ci
- run: npm run build