Merge pull request #4968 from open-formulieren/feature/build-pdf-docs #4186
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: Frontend code quality checks | |
# Run this workflow every time a new commit pushed to your repository | |
on: | |
push: | |
branches: | |
- master | |
- stable/* | |
tags: | |
paths: | |
- '**.scss' | |
- '**.js' | |
- '**.yaml' | |
pull_request: | |
paths: | |
- '**.scss' | |
- '**.js' | |
- '**.yaml' | |
workflow_dispatch: | |
jobs: | |
prettier: | |
name: Check frontend code formatting with prettier | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
- name: Install prettier | |
run: | | |
npm ci --legacy-peer-deps | |
- name: Run prettier | |
run: | | |
npm run checkformat |