Add linting CI
This commit is contained in:
parent
0d1d3b1685
commit
5f72ae7213
1 changed files with 26 additions and 0 deletions
26
.github/workflows/check-format-and-lint.yaml
vendored
Normal file
26
.github/workflows/check-format-and-lint.yaml
vendored
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue