-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (42 loc) · 1.47 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
44
45
46
47
48
49
50
51
52
53
name: Test
on: [push, pull_request]
jobs:
lint-build:
name: Lint and Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Lint
run: yarn lint --max-warnings=0
- name: Build
run: yarn build
test:
name: Test
runs-on: ubuntu-latest
env:
DATABASE_URL: ${{secrets.DATABASE_URL}}
FIREBASE_API_KEY: ${{secrets.FIREBASE_API_KEY}}
FIREBASE_AUTH_DOMAIN: ${{secrets.FIREBASE_AUTH_DOMAIN}}
FIREBASE_PROJECT_ID: ${{secrets.FIREBASE_PROJECT_ID}}
FIREBASE_STORAGE_BUCKET: ${{secrets.FIREBASE_STORAGE_BUCKET}}
FIREBASE_MESSAGING_SENDER_ID: ${{secrets.FIREBASE_MESSAGING_SENDER_ID}}
FIREBASE_APP_ID: ${{secrets.FIREBASE_APP_ID}}
FIREBASE_MEASUREMENT_ID: ${{secrets.FIREBASE_MEASUREMENT_ID}}
FIREBASE_ADMIN_PROJECT_ID: ${{secrets.FIREBASE_ADMIN_PROJECT_ID}}
FIREBASE_ADMIN_PRIVATE_KEY: ${{secrets.FIREBASE_ADMIN_PRIVATE_KEY}}
FIREBASE_ADMIN_CLIENT_EMAIL: ${{secrets.FIREBASE_ADMIN_CLIENT_EMAIL}}
FIREBASE_STORAGE_URL: ${{secrets.FIREBASE_STORAGE_URL}}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Prisma Generate
run: yarn prisma:gen:test
- name: Unit Test
run: yarn test
- name: E2E Test
run: yarn test:e2e