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