-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (42 loc) · 1.26 KB
/
client.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
name: Client
on:
pull_request:
types:
- opened
- synchronize
- reopend
jobs:
client_test:
runs-on: ubuntu-latest
env:
working-directory: ./client
steps:
- uses: actions/checkout@v2
- name: Install Dependencies
run: npm ci
working-directory: ${{env.working-directory}}
- name: Run Lint
run: npm run lint
working-directory: ${{env.working-directory}}
- name: Build PWA
run: npm run build
working-directory: ${{env.working-directory}}
- name: Run Tests
run: npm run test
working-directory: ${{env.working-directory}}
client_preview:
if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}'
runs-on: ubuntu-latest
env:
working-directory: ./client
steps:
- uses: actions/checkout@v3
- name: 'Install Dependencies and build'
run: npm ci && npm run build
working-directory: ${{env.working-directory}}
- name: Deploy Preview
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_POOLSCORE_1973 }}'
projectId: poolscore-1973