-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Test workflow * Turn off broken rules * Restrict to rules changes * Change to rules file * Amend workflow
- Loading branch information
1 parent
a253915
commit d0ee054
Showing
3 changed files
with
45 additions
and
1 deletion.
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,43 @@ | ||
name: On pull request | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- develop | ||
paths: | ||
- 'database/firestore.rules' | ||
push: | ||
branches: | ||
- develop | ||
paths: | ||
- 'database/firestore.rules' | ||
|
||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@master | ||
with: | ||
node-version: '10' | ||
- run: echo "TEST" | ||
# - run: npm ci | ||
# - run: npm run ci:test:rules | ||
|
||
deploy_to_develop: | ||
if: github.event.pull_request.merged == 'true' | ||
needs: test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@master | ||
with: | ||
node-version: '10' | ||
- run: echo "MERGED" | ||
|
||
|
||
|
||
# TO DO | ||
# - [ ] trigger on pr and merge | ||
# - [ ] if tests pass AND it's a merge event then deploy |
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