-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (47 loc) · 1.34 KB
/
tests.yaml
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
53
54
55
56
57
58
59
60
61
62
name: Automated Tests
on: pull_request
jobs:
jest_server:
name: Jest Server
runs-on: ubuntu-latest
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
API_KEY: ${{ secrets.API_KEY }}
AUTH_DOMAIN: ${{ secrets.AUTH_DOMAIN }}
PROJECT_ID: ${{ secrets.PROJECT_ID }}
STORAGE_BUCKET: ${{ secrets.STORAGE_BUCKET }}
MESSAGING_SENDER_ID: ${{ secrets.MESSAGING_SENDER_ID }}
APP_ID: ${{ secrets.APP_ID }}
FIREBASE_EMAIL: ${{ secrets.FIREBASE_EMAIL }}
FIREBASE_SENHA: ${{ secrets.FIREBASE_SENHA }}
JWT_KEY: ${{ secrets.JWT_KEY }}
HASH_KEY: ${{ secrets.HASH_KEY }}
EMAIL_USER: ${{ secrets.EMAIL_USER }}
EMAIL_PASSWORD: ${{ secrets.EMAIL_PASSWORD }}
TOKEN: ${{ secrets.TOKEN }}
defaults:
run:
working-directory: ./server
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm test
jest_api:
name: Jest Api
runs-on: ubuntu-latest
env:
DATABASE_URL: ${{ secrets.DATABASE_URL_API }}
TOKEN: ${{ secrets.TOKEN_API }}
defaults:
run:
working-directory: ./api
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm test