-
Notifications
You must be signed in to change notification settings - Fork 3
52 lines (47 loc) · 1.66 KB
/
ci.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
name: CI
on: [pull_request]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: '18'
- uses: actions/cache@v2
with:
path: ~/.yarn
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-
- run: yarn install
- run: yarn lint
build:
name: Build
env:
NEXT_PUBLIC_API_KEY: '${{ secrets.NEXT_PUBLIC_API_KEY }}'
NEXT_PUBLIC_AUTH_DOMAIN: '${{ secrets.NEXT_PUBLIC_AUTH_DOMAIN }}'
NEXT_PUBLIC_PROJECT_ID: '${{ secrets.NEXT_PUBLIC_PROJECT_ID }}'
NEXT_PUBLIC_STORAGE_BUCKET: '${{ secrets.NEXT_PUBLIC_STORAGE_BUCKET }}'
NEXT_PUBLIC_MESSAGIN_SENDER_ID: '${{ secrets.NEXT_PUBLIC_MESSAGIN_SENDER_ID }}'
NEXT_PUBLIC_APP_ID: '${{ secrets.NEXT_PUBLIC_APP_ID }}'
NEXT_PUBLIC_MEASUREMENT_ID: '${{ secrets.NEXT_PUBLIC_MEASUREMENT_ID }}'
NEXT_PUBLIC_ADMIN_UID_1: '${{ secrets.NEXT_PUBLIC_ADMIN_UID_1 }}'
NEXT_PUBLIC_ADMIN_UID_2: '${{ secrets.NEXT_PUBLIC_ADMIN_UID_2 }}'
NEXT_PUBLIC_ADMIN_UID_3: '${{ secrets.NEXT_PUBLIC_ADMIN_UID_3 }}'
runs-on: ubuntu-latest
needs: lint
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: '18'
- uses: actions/cache@v2
with:
path: ~/.yarn
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-
- run: yarn install
- run: CI='false' yarn build