-
-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(query): support `collectionGroup` for listeners - #264 - @rscotten * fix(query): use correct value in snapshot cache - #258 - @illuminist * feat(query): support `storeAs` property in `populates` objects in queries - #261 - @jfrumar-infinitusai * chore(deps): update immer from 3.2.0 to v5.0.0 * chore(deps): update dev dependencies including babel, eslint and crossenv * chore(ci): switch from TravisCI to Github Actions * chore(deps): switch to yarn in place of npm Co-authored-by: jfrumar-infinitusai <[email protected]> Co-authored-by: Richard Scotten <[email protected]> Co-authored-by: illuminist <[email protected]>
- Loading branch information
1 parent
b6e2851
commit a0bab1f
Showing
27 changed files
with
7,683 additions
and
11,405 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 |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: NPM Package Publish | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- next | ||
|
||
jobs: | ||
publish-npm: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v1 | ||
|
||
- name: Check package version | ||
uses: technote-space/package-version-check-action@v1 | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
registry-url: https://registry.npmjs.org/ | ||
|
||
- name: Get yarn cache | ||
id: yarn-cache | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
|
||
- uses: actions/cache@v1 | ||
with: | ||
path: ${{ steps.yarn-cache.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} | ||
|
||
- name: Install Dependencies | ||
env: | ||
CI: true | ||
run: yarn install --frozen-lockfile | ||
|
||
- name: Run Unit Tests + Coverage | ||
env: | ||
CI: true | ||
CODE_CLIMATE: ${{ secrets.CODE_CLIMATE }} | ||
run: yarn test:cov && yarn codecov | ||
|
||
- name: Upload Coverage | ||
if: success() | ||
env: | ||
CI: true | ||
CODE_COV: ${{ secrets.CODE_COV }} | ||
# Upload to Code Cover. Curl used in place of codecov/codecov-action | ||
# due to long build time. See https://github.com/codecov/codecov-action/issues/21 | ||
run: curl -s https://codecov.io/bash | bash -s -- -t $CODE_COV | ||
|
||
- name: Publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
run: npm publish $(if [ ${{github.ref}} == 'refs/heads/next' ]; then echo '--tag next';fi;) | ||
|
||
- name: Archive Build Artifact | ||
uses: actions/upload-artifact@master | ||
if: success() | ||
with: | ||
name: build | ||
path: lib |
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Verify | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v1 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
|
||
- name: Get yarn cache | ||
id: yarn-cache | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
|
||
# Setup dependency caching | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ${{ steps.yarn-cache.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} | ||
|
||
- name: Install Dependencies | ||
env: | ||
CI: true | ||
run: yarn install --frozen-lockfile | ||
|
||
- name: Run Build | ||
run: yarn build | ||
|
||
- name: Run Unit Tests + Coverage | ||
if: success() | ||
run: yarn test:cov | ||
|
||
- name: Upload Coverage | ||
if: success() | ||
env: | ||
CI: true | ||
CODE_COV: ${{ secrets.CODE_COV }} | ||
# Upload to codecov.io. Curl used in place of codecov/codecov-action | ||
# due to long build time. See https://github.com/codecov/codecov-action/issues/21 | ||
run: curl -s https://codecov.io/bash | bash -s -- -t $CODE_COV |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,9 +6,6 @@ | |
"$uid": { | ||
".write": "auth !== null && $uid === auth.uid" | ||
} | ||
}, | ||
"projects": { | ||
".indexOn": ["createdBy"] | ||
} | ||
} | ||
} |
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.