-
Notifications
You must be signed in to change notification settings - Fork 2
65 lines (55 loc) · 2.62 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
54
55
56
57
58
59
60
61
62
63
64
65
name: Test
on: [push, pull_request]
jobs:
lint-build:
name: Lint and Build
runs-on: ubuntu-latest
env:
NEXT_PUBLIC_GRAPHQL_ENDPOINT: ${{secrets.NEXT_PUBLIC_GRAPHQL_ENDPOINT}}
NEXT_PUBLIC_WS_ENDPOINT: ${{secrets.NEXT_PUBLIC_WS_ENDPOINT}}
NEXT_PUBLIC_REVALIDATION_SECRET: ${{secrets.NEXT_PUBLIC_REVALIDATION_SECRET}}
NEXT_PUBLIC_FIREBASE_API_KEY: ${{secrets.NEXT_PUBLIC_FIREBASE_API_KEY}}
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN: ${{secrets.NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN}}
NEXT_PUBLIC_FIREBASE_PROJECT_ID: ${{secrets.NEXT_PUBLIC_FIREBASE_PROJECT_ID}}
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET: ${{secrets.NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET}}
NEXT_PUBLIC_FIREBASE_SENDER_ID: ${{secrets.NEXT_PUBLIC_FIREBASE_SENDER_ID}}
NEXT_PUBLIC_FIREBASE_APP_ID: ${{secrets.NEXT_PUBLIC_FIREBASE_APP_ID}}
NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID: ${{secrets.NEXT_PUBLIC_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}}
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:
NEXT_PUBLIC_GRAPHQL_ENDPOINT: ${{secrets.NEXT_PUBLIC_GRAPHQL_ENDPOINT}}
NEXT_PUBLIC_WS_ENDPOINT: ${{secrets.NEXT_PUBLIC_WS_ENDPOINT}}
NEXT_PUBLIC_REVALIDATION_SECRET: ${{secrets.NEXT_PUBLIC_REVALIDATION_SECRET}}
NEXT_PUBLIC_FIREBASE_API_KEY: ${{secrets.FIREBASE_API_KEY}}
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN: ${{secrets.FIREBASE_AUTH_DOMAIN}}
NEXT_PUBLIC_FIREBASE_PROJECT_ID: ${{secrets.FIREBASE_PROJECT_ID}}
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET: ${{secrets.FIREBASE_STORAGE_BUCKET}}
NEXT_PUBLIC_FIREBASE_SENDER_ID: ${{secrets.FIREBASE_SENDER_ID}}
NEXT_PUBLIC_FIREBASE_APP_ID: ${{secrets.FIREBASE_APP_ID}}
NEXT_PUBLIC_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}}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Unit Test
run: yarn test
- name: E2E Test
run: yarn test:e2e