From 03603c128a1cddd7f2404fe27a7fa60ed7f6c1e5 Mon Sep 17 00:00:00 2001 From: Stefan Butz Date: Mon, 27 Nov 2023 13:57:36 +0100 Subject: [PATCH] Test deployment --- .github/workflows/deploy-on-merge.yml | 8 ++++++++ firestore/package.json | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-on-merge.yml b/.github/workflows/deploy-on-merge.yml index f7052ff..0652afa 100644 --- a/.github/workflows/deploy-on-merge.yml +++ b/.github/workflows/deploy-on-merge.yml @@ -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 @@ -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 diff --git a/firestore/package.json b/firestore/package.json index e71040a..5682046 100644 --- a/firestore/package.json +++ b/firestore/package.json @@ -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/"