Skip to content

Commit

Permalink
Add workflow checks for TypeScript Compilation Errors
Browse files Browse the repository at this point in the history
  • Loading branch information
s0 committed Feb 11, 2022
1 parent 937832b commit 768c1f6
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,31 @@ on:

jobs:

typescript:

name: Type-Check node ${{ matrix.node }}
runs-on: ubuntu-latest
strategy:
matrix:
node: [ 12, 14, 16 ]

steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Setup node
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
cache: npm
-
name: Install npm dependencies
run: npm install
-
name: Run Typescript Compiler
run: npm run type-check

eslint:

name: ESLint node ${{ matrix.node }}
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"scripts": {
"start": "electron .",
"rebuild": "electron-rebuild -w node-gtk",
"type-check": "tsc --noEmit",
"build": "tsc --build && node make build",
"lint": "eslint \"ts/**\"",
"lint:fix": "eslint \"ts/**\" --fix",
Expand Down

0 comments on commit 768c1f6

Please sign in to comment.