File tree Expand file tree Collapse file tree 1 file changed +18
-7
lines changed Expand file tree Collapse file tree 1 file changed +18
-7
lines changed Original file line number Diff line number Diff line change 12
12
13
13
steps :
14
14
- uses : actions/checkout@v1
15
+ - name : Cache Firebase CLI
16
+ uses : actions/cache@v1
17
+ id : cache
18
+ with :
19
+ path : ~/.cache
20
+ key : firebase-cli
15
21
- name : Set up Python ${{ matrix.python }}
16
22
uses : actions/setup-python@v1
17
23
with :
@@ -26,11 +32,16 @@ jobs:
26
32
- name : Test with pytest
27
33
if : success() || failure()
28
34
run : pytest
29
- - name : Set up Node.js 10
30
- uses : actions/setup-node@v1
31
- with :
32
- node-version : 10.x
33
- - name : Run integration tests against emulator
35
+ - name : Set up CLI
36
+ if : steps.cache.outputs.cache-hit != 'true'
34
37
run : |
35
- npm install -g firebase-tools
36
- firebase emulators:exec --only database --project fake-project-id 'pytest integration/test_db.py'
38
+ curl -o ${HOME}/.cache/bin/firebase --create-dirs -sL https://firebase.tools/bin/linux/latest
39
+ chmod +x ${HOME}/.cache/bin/firebase
40
+ - name : Add Firebase to path
41
+ run : |
42
+ echo Home is $HOME
43
+ echo GitHub Workspace is $GITHUB_WORKSPACE
44
+ ls -l ${HOME}/.cache
45
+ echo "::add-path::${HOME}/.cache/bin"
46
+ - name : Run integration tests against emulator
47
+ run : firebase emulators:exec --only database --project fake-project-id 'pytest integration/test_db.py'
You can’t perform that action at this time.
0 commit comments