-
-
Notifications
You must be signed in to change notification settings - Fork 16
41 lines (37 loc) · 904 Bytes
/
build.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
name: Build project + unit test
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: 'npm'
- name: npm install (ci)
run: |
npm ci
- name: npm build
run: |
npm run build
- name: npm lint:i18n
run: |
npm run lint:i18n
- name: functions npm install (ci)
run: |
cd functions
npm ci
- name: npm test (Firestore rules and functions/)
run: |
npm run test
- name: build functions/
run: |
cd functions
npm run build
- name: run lighthouse ci
run: |
npm install -g @lhci/[email protected]
lhci autorun --config=./lighthouse/lighthouserc.json
env:
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}