-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 1.32 KB
/
test.yml
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: Jest Tests
on:
push:
branches:
- '*'
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/[email protected]
- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: '20.x'
- name: Start MongoDB
uses: supercharge/[email protected]
with:
mongodb-version: '7.0.2'
mongodb-username: 'admin'
mongodb-password: 'admin'
- name: Install dependencies
run: npm ci
- name: Run API tests
run: npm test
env:
MONGODB_URI: mongodb://admin:admin@localhost:27017
JWT_SECRET: secret
AZURE_STORAGE_CONNECTION_STRING: 'DefaultEndpointsProtocol=https;AccountName=account;AccountKey=key;EndpointSuffix=core.windows.net'
- name: Run UI tests
run: npm run test-ui
env:
MONGODB_URI: mongodb://admin:admin@localhost:27017
JWT_SECRET: secret
AZURE_STORAGE_CONNECTION_STRING: 'DefaultEndpointsProtocol=https;AccountName=account;AccountKey=key;EndpointSuffix=core.windows.net'