Add linting CI

This commit is contained in:
Andras Schmelczer 2022-01-24 21:14:52 +01:00
parent 0d1d3b1685
commit 5f72ae7213
No known key found for this signature in database
GPG key ID: 39260B5B0614A13E

View file

@ -0,0 +1,26 @@
name: Check formatting and lint
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Restore dependencies
run: dotnet restore
- name: Lint
run: |
npm ci
npm run lint
git diff
if [[ `git status --porcelain` ]]; then
exit 1
fi