File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change
1
+ # ./.github/workflows/vitest_pull_request_tests.yml
2
+
3
+ # This workflow will do a clean installation of node dependencies
4
+ # then cache/restore them
5
+ # then build the source code (currently disabled)
6
+ # then run tests across different versions of node (only node 16.x for Vitest currently)
7
+ # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
8
+
9
+ name : Node.js CI Vitest Run Tests
10
+
11
+ on :
12
+ pull_request :
13
+ branches : [ "main" ]
14
+ # push:
15
+ # branches: [ "main" ]
16
+
17
+ jobs :
18
+ build :
19
+ runs-on : ubuntu-latest
20
+ strategy :
21
+ matrix :
22
+ node-version : [16.x]
23
+ # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
24
+ steps :
25
+ - uses : actions/checkout@v3
26
+ - name : Use Node.js ${{ matrix.node-version }}
27
+ uses : actions/setup-node@v3
28
+ with :
29
+ node-version : ${{ matrix.node-version }}
30
+ cache : ' npm'
31
+ - run : npm ci
32
+ # - run: npm run generate --if-present
33
+ - run : npm test
You can’t perform that action at this time.
0 commit comments