Skip to content

Merge pull request #4074 from open-formulieren/issue/4069 #2730

Merge pull request #4074 from open-formulieren/issue/4069

Merge pull request #4074 from open-formulieren/issue/4069 #2730

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