Skip to content

Commit d9760ae

Browse files
Merge pull request #1 from LinkedInLearning/add-CI-type-checking
chore: add CI typechecking
2 parents fbd7e45 + 6187832 commit d9760ae

File tree

3 files changed

+30
-2
lines changed

3 files changed

+30
-2
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
pull_request:
9+
branches:
10+
- main
11+
12+
jobs:
13+
14+
typecheck:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v3
18+
- uses: actions/setup-node@v3
19+
with:
20+
node-version: 16.x
21+
cache: npm
22+
23+
- name: Install
24+
run: npm install
25+
26+
- name: Typecheck
27+
run: npm run typecheck

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"scripts": {
33
"dev": "vite",
4-
"build": "tsc && vite build"
4+
"build": "vite build",
5+
"typecheck": "tsc"
56
},
67
"devDependencies": {
78
"typescript": "^4.8.4",

0 commit comments

Comments
 (0)