Skip to content

Commit

Permalink
Test deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
sbutz committed Dec 18, 2023
1 parent 451271a commit a9b6ed4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/deploy-on-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,18 @@ on:
push:
branches:
- master
##TODO: remove
pull_request:
types:
- opened
- synchronize
- reopend
jobs:
firestore_deploy:
runs-on: ubuntu-latest
env:
working-directory: ./firestore
GOOGLE_APPLICATION_CREDENTIALS: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_POOLSCORE_1973 }}
steps:
- uses: actions/checkout@v3
- run: npm run deploy
Expand All @@ -21,6 +28,7 @@ jobs:
runs-on: ubuntu-latest
env:
working-directory: ./functions
GOOGLE_APPLICATION_CREDENTIALS: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_POOLSCORE_1973 }}
steps:
- uses: actions/checkout@v3
- run: npm ci && npm run build
Expand Down
2 changes: 1 addition & 1 deletion firestore/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"author": "",
"license": "ISC",
"scripts": {
"deploy": "npx firebase-tools deploy --only firestore:rules",
"deploy": "npx firebase-tools --debug deploy --only firestore:rules",
"test": "npx firebase-tools emulators:exec --only firestore test/run.sh",
"export": "npx firebase-tools emulators:export ./emulator_data",
"lint": "eslint test/"
Expand Down

0 comments on commit a9b6ed4

Please sign in to comment.