File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,12 +16,13 @@ jobs:
1616 script : ./lint.sh all
1717
1818before_install :
19- - if [[ "$TEST_TYPE" == "integration" ]]; then nvm install 8 && npm install -g firebase-tools; fi
19+ - export FIREPIT=$HOME/.cache/firepit/firebase; [[ "$TEST_TYPE" != "integration" || -x "$FIREPIT" ]] || (curl -L https://github.com/abeisgoat/firebase-tools-release-playground/releases/download/v7.2.2/firebase-tools-headless-linux > "$FIREPIT" && chmod +x -- "$FIREPIT")
2020script :
2121 - if [[ "$TEST_TYPE" == "unit" ]]; then pytest; fi
22- - if [[ "$TEST_TYPE" == "integration" ]]; then firebase emulators:exec --only database --project fake-project-id 'pytest integration/test_db.py'; fi
22+ - if [[ "$TEST_TYPE" == "integration" ]]; then "$FIREPIT" emulators:exec --only database --project fake-project-id 'pytest integration/test_db.py'; fi
2323cache :
2424 pip : true
2525 npm : true
2626 directories :
2727 - $HOME/.cache/firebase/emulators
28+ - $HOME/.cache/firepit
You can’t perform that action at this time.
0 commit comments