Commit 188cd07 1 parent a504dc8 commit 188cd07 Copy full SHA for 188cd07
File tree 2 files changed +50
-1
lines changed
2 files changed +50
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Test and lint
2
+
3
+ on :
4
+ push :
5
+ branches : ['*']
6
+ paths-ignore :
7
+ - ' **/*.md' # Ignore changes to markdown files
8
+ pull_request :
9
+ branches :
10
+ - main
11
+ paths-ignore :
12
+ - ' **/*.md' # Ignore changes to markdown files
13
+
14
+ jobs :
15
+ test-lint :
16
+ environment : Github CI
17
+ runs-on : ubuntu-latest
18
+ permissions :
19
+ contents : read
20
+
21
+ steps :
22
+ - name : Checkout repository
23
+ uses : actions/checkout@v4
24
+
25
+ - name : Install bun for deployment
26
+ uses : oven-sh/setup-bun@v2
27
+ with :
28
+ bun-version : latest
29
+
30
+ # lib lint/check/test
31
+ - name : Install deps
32
+ working-directory : ./packages/litlytics
33
+ run : bun install
34
+
35
+ - name : Run lib typecheck
36
+ working-directory : ./packages/litlytics
37
+ run : bun run typecheck
38
+
39
+ - name : Run lib tests
40
+ working-directory : ./packages/litlytics
41
+ run : bun run test:ci
42
+
43
+ # main app lint/check/test
44
+ - name : Run app eslint
45
+ run : bun run lint
46
+
47
+ - name : Run app typecheck
48
+ run : bun run typecheck
Original file line number Diff line number Diff line change 5
5
"type" : " module" ,
6
6
"scripts" : {
7
7
"typecheck" : " tsc" ,
8
- "test" : " vitest"
8
+ "test" : " vitest" ,
9
+ "test:ci" : " vitest --coverage --run"
9
10
},
10
11
"devDependencies" : {
11
12
"@types/bun" : " latest" ,
You can’t perform that action at this time.
0 commit comments