-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore(functions): remove fs-extra from cloud functions dependencies (use native `fs.promises` instead) * chore(deps): update firebase-admin to v9 in cloud functions dependencies * chore(deps): update react-hook-form to v6 * chore(app): remove lodash from a number of places within the app * fix(functions): fix removal of project subcollections in cleanupProject * chore(app): replace ExpansionPanel with Accordion (as per material-ui warning)
- Loading branch information
1 parent
76f6ac5
commit 8d633d8
Showing
39 changed files
with
839 additions
and
840 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,11 @@ jobs: | |
name: Deploy | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- name: Checkout Repo | ||
uses: actions/checkout@v2 | ||
|
||
|
@@ -56,7 +61,7 @@ jobs: | |
- name: Verify Functions | ||
run: | | ||
yarn functions:build | ||
yarn --cwd functions test:cov || echo "::warning::Functions unit tests failed" | ||
yarn --cwd functions test:cov | ||
- name: Upload Functions Test Coverage | ||
uses: codecov/codecov-action@v1 | ||
|
@@ -71,9 +76,11 @@ jobs: | |
run: | | ||
set -o pipefail | ||
gitBranch=${GITHUB_REF##*/} | ||
# Set other app configs (settings within .firebaserc in the ci.setEnv section) | ||
$(yarn bin)/firebase-ci setEnv | ||
# Find the config associated to the firebase project in .firebaserc | ||
gitBranch=${GITHUB_REF##*/} | ||
gcloudProject=$(cat .firebaserc | jq -r --arg alias "$gitBranch" '.projects[$alias]') | ||
echo Exporting Firebase SDK Config for $gcloudProject project... | ||
|
@@ -88,9 +95,6 @@ jobs: | |
sed 's/:"/:/g; s/^/echo \"::set-env name=REACT_APP_FIREBASE_/g' \ | ||
) | ||
# Set other app configs (settings within .firebaserc in the ci.setEnv section) | ||
$(yarn bin)/firebase-ci setEnv | ||
echo Begin evaluating project config to export as environment variables: | ||
# Loop through each line of config and evaluate to export env vars | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,11 @@ jobs: | |
name: Verify + Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- name: Checkout Repo | ||
uses: actions/checkout@v2 | ||
|
||
|
@@ -45,7 +50,7 @@ jobs: | |
# NOTE: Project name is hardcoded since emulators are being used | ||
run: | | ||
yarn functions:build | ||
yarn --cwd functions test:cov || echo "::warning::Functions unit tests failed" | ||
yarn --cwd functions test:cov | ||
- name: Upload Functions Test Coverage | ||
uses: codecov/codecov-action@v1 | ||
|
@@ -188,7 +193,7 @@ jobs: | |
headless: true | ||
group: 'UI Integration Tests' | ||
tag: emulated | ||
start: yarn emulate:hosting --project ${{ env.GCLOUD_PROJECT }} | ||
start: yarn emulators:no-functions --project ${{ env.GCLOUD_PROJECT }} | ||
wait-on: ${{ env.CYPRESS_BASE_URL }} | ||
wait-on-timeout: 120 | ||
env: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,11 @@ jobs: | |
name: Verify + Build + Deploy | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- name: Checkout Repo | ||
uses: actions/checkout@v2 | ||
|
||
|
@@ -41,7 +46,6 @@ jobs: | |
- name: Install Dependencies | ||
env: | ||
CYPRESS_INSTALL_BINARY: 0 # Skip installing of cypress | ||
CI: true | ||
run: | | ||
yarn install --frozen-lockfile | ||
yarn --cwd docs install --frozen-lockfile | ||
|
@@ -74,5 +78,3 @@ jobs: | |
with: | ||
name: firebase-debug | ||
path: firebase-debug.log | ||
|
||
# TODO: Look into saving docs/.cache for faster builds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,11 @@ jobs: | |
name: Verify + Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- name: Checkout Repo | ||
uses: actions/checkout@v2 | ||
|
||
|
@@ -23,12 +28,18 @@ jobs: | |
id: yarn-cache | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
|
||
- name: Cache npm dependencies | ||
- name: Cache Dependencies | ||
uses: actions/cache@v1 | ||
with: | ||
path: ${{ steps.yarn-cache.outputs.dir }} | ||
key: ${{ runner.os }}-docs-${{ hashFiles('**/yarn.lock') }} | ||
|
||
- name: Cache Gatsby Build | ||
uses: actions/cache@v1 | ||
with: | ||
path: docs/.cache | ||
key: ${{ runner.os }}-docs-build | ||
|
||
- name: Install Dependencies | ||
env: | ||
CYPRESS_INSTALL_BINARY: 0 # Skip installing of cypress | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.