-
Notifications
You must be signed in to change notification settings - Fork 6
52 lines (43 loc) · 1.16 KB
/
run-express-tests.yml
File metadata and controls
52 lines (43 loc) · 1.16 KB
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
44
45
46
47
48
49
50
51
52
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 -- --json --outputFile=test-results.json || true
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/
server/express/test-results.json
retention-days: 30
- name: Generate Test Summary
if: always()
working-directory: .
run: |
chmod +x .github/scripts/generate-test-summary-jest.sh
.github/scripts/generate-test-summary-jest.sh server/express/test-results.json