add github workflow for checking code formatting

This commit is contained in:
Martin Raifer 2022-01-25 14:18:08 +01:00
parent 21fc458f14
commit 8de7591a55
No known key found for this signature in database
GPG key ID: 3CD561F7B1C461BD

13
.github/workflows/lint.yml vendored Normal file
View file

@ -0,0 +1,13 @@
name: prettier check
on: [push, pull_request]
jobs:
lint:
name: Check for code formatting mistakes
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
- run: npm install
- run: npm run lint