Files
Stephan e816e0beee Check formatting on the dev branch
The dev branch should also enforce correct formatting;
2021-10-19 11:53:53 +02:00

29 lines
548 B
YAML

# This workflow checks whether all files conform with the Prettier configuration
name: Check prettier formatting
on:
push:
branches: [ main, dev ]
pull_request:
branches: [ main, dev ]
workflow_dispatch:
jobs:
# Job to check the formatting
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install prettier
run: npm i -g prettier
- name: Check formatting
run: prettier -c .