forked from mongodb/docs-sample-apps
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 821 Bytes
/
run-express-tests.yml
File metadata and controls
43 lines (35 loc) · 821 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Run Express Tests
on:
pull_request:
branches:
- development
push:
branches:
- development
jobs:
test:
name: Run Express Tests
runs-on: ubuntu-latest
defaults:
run:
working-directory: server/express
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: npm install
- name: Run tests
run: npm test
env:
MONGODB_URI: ${{ secrets.MFLIX_URI }}
- name: Upload test results
uses: actions/upload-artifact@v4
if: always()
with:
name: test-results
path: server/express/coverage/
retention-days: 30