-
-
Notifications
You must be signed in to change notification settings - Fork 11
40 lines (35 loc) · 926 Bytes
/
typechecking.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Typechecking
on:
push:
branches:
- master
paths:
- "**.ts"
- "**/tsconfig.json"
- "package-lock.json"
- ".github/workflows/typechecking.yml"
pull_request:
paths:
- "**.ts"
- "**/tsconfig.json"
- "package-lock.json"
- ".github/workflows/typechecking.yml"
defaults:
run:
shell: "bash"
jobs:
typescript:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16 # Need for npm >=7.7
cache: "npm"
# TODO: Install not all dependencies, but only those required for this workflow
- name: Install dependencies
run: npm ci
# Type checking is divided into three separate commands for more convenient logs
- run: npm run typecheck-main
- run: npm run typecheck-preload
- run: npm run typecheck-renderer