Skip to content

Commit

Permalink
Add code checks CI job
Browse files Browse the repository at this point in the history
  • Loading branch information
Beaglefoot committed Jun 19, 2022
1 parent 91a8df5 commit 8c2e0bb
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: checks

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
check:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
cache: yarn
- run: yarn install --frozen-lockfile
- run: yarn check:types
- run: yarn check:style
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.d.ts
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"test": "jest",
"test:server": "jest server/tests",
"test:ci": "jest --runInBand",
"check:types": "tsc --noEmit -p server/tsconfig.json"
"check:types": "tsc --noEmit -p server/tsconfig.json",
"check:style": "prettier --check **/*.ts"
},
"devDependencies": {
"@types/jest": "27.0.1",
Expand Down

0 comments on commit 8c2e0bb

Please sign in to comment.