-
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (46 loc) · 1.2 KB
/
push.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
on: push
name: Build and Deploy
jobs:
installDependencies:
name: Install dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Install dependencies
uses: Tgjmjgj/npm@specify-workspace-directory
env:
DIR: ./functions
with:
args: install
- name: Collect coverage
uses: Tgjmjgj/npm@specify-workspace-directory
env:
DIR: ./functions
with:
args: run coverage
- name: Build project
uses: Tgjmjgj/npm@specify-workspace-directory
env:
DIR: ./functions
with:
args: run build
- name: Send coverage to codecov
uses: Atrox/[email protected]
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Run tests
uses: Tgjmjgj/npm@specify-workspace-directory
env:
DIR: ./functions
with:
args: t
- name: Filter master
uses: actions/bin/filter@master
with:
args: branch master
- name: Deploy on Firebase
uses: w9jds/firebase-action@7d6b2b058813e1224cdd4db255b2f163ae4084d3
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
with:
args: deploy --only functions