File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change
1
+ # This is a basic workflow to help you get started with Actions
2
+
3
+ name : CI
4
+
5
+ # Controls when the action will run.
6
+ on :
7
+ # Triggers the workflow on push or pull request events but only for the master branch
8
+ push :
9
+ branches : [ main ]
10
+ pull_request :
11
+ branches : [ main ]
12
+
13
+ # Allows you to run this workflow manually from the Actions tab
14
+ workflow_dispatch :
15
+
16
+ # A workflow run is made up of one or more jobs that can run sequentially or in parallel
17
+ jobs :
18
+ build-and-test :
19
+ # The type of runner that the job will run on
20
+ runs-on : ubuntu-latest
21
+
22
+ steps :
23
+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
24
+ - uses : actions/checkout@v4
25
+
26
+ - name : Setup Node.js environment
27
+
28
+ with :
29
+ node-version : 20.x
30
+ cache : yarn
31
+ cache-dependency-path : yarn.lock
32
+
33
+ - name : Install dependencies
34
+ run : yarn
35
+
36
+ - name : Log Versions
37
+ run : yarn tsc --version && yarn mocha --version
38
+
39
+ - name : Type Check
40
+ run : yarn tsc
41
+
42
+ - name : Unit tests
43
+ run : yarn test
You can’t perform that action at this time.
0 commit comments