-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (35 loc) · 991 Bytes
/
quasartest.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
name: Web client CI
on:
pull_request:
branches: [ master ]
jobs:
build:
name: Build and Test
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./client
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set up Node (16)
uses: actions/setup-node@v1
with:
node-version: 16.x
cache: 'npm'
cache-dependency-path: client/package-lock.json
- name: NPM ci
run: npm ci
- name: Build
run: npx quasar build
- name: Test
run: npx quasar test --unit jest
- name: Deploy preview
uses: FirebaseExtended/action-hosting-deploy@v0
if: ${{ github.actor == 'dependabot[bot]' }}
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_GAINSTRACK }}'
projectId: gainstrack
target: poc
entryPoint: ./client