From 66e683d7c74086653c978b9dd41dccaa660542ce Mon Sep 17 00:00:00 2001 From: Boldizsar Mezei Date: Mon, 6 Nov 2023 18:39:19 +0100 Subject: [PATCH] Fixes --- .../workflows/functions_emulated-tests.yml | 5 ++- .../functions_online-emulated-tests.yml | 39 ++++++++++++++++++- 2 files changed, 40 insertions(+), 4 deletions(-) diff --git a/.github/workflows/functions_emulated-tests.yml b/.github/workflows/functions_emulated-tests.yml index b15d8338eb..ff96243aed 100644 --- a/.github/workflows/functions_emulated-tests.yml +++ b/.github/workflows/functions_emulated-tests.yml @@ -262,8 +262,8 @@ jobs: npm run test:ci -- --forceExit --findRelatedTests ./test/cron/proposal.cron.spec.ts && npm run test:ci -- --forceExit --findRelatedTests ./test/db.roll.spec.ts && npm run test:ci -- --forceExit --findRelatedTests ./test/dbroll/nft.auction.roll.spec.ts && - npm run test:ci -- --forceExit --findRelatedTests ./test/stake/delete.stake.reward.spec.ts && - npm run test:ci -- --forceExit --findRelatedTests ./test/stake/stake.reward.cron.spec.ts + npm run test:ci -- --forceExit --findRelatedTests ./test/dbroll/set.project.spec.ts && + npm run test:ci -- --forceExit --findRelatedTests ./test/stake/delete.stake.reward.spec.ts " --project dev --only functions,firestore,storage,ui,auth --export-on-exit=./firestore-data - name: Archive firestore data uses: actions/upload-artifact@v3 @@ -298,6 +298,7 @@ jobs: export GOOGLE_APPLICATION_CREDENTIALS="./test-service-account-key.json" npm run milestone-sync & firebase emulators:exec " + npm run test:ci -- --forceExit --findRelatedTests ./test/stake/stake.reward.cron.spec.ts && npm run test:ci -- --forceExit --findRelatedTests ./test/storage/resize.img.spec.ts " --project dev --only functions,firestore,storage,ui,auth --export-on-exit=./firestore-data - name: Archive firestore data diff --git a/.github/workflows/functions_online-emulated-tests.yml b/.github/workflows/functions_online-emulated-tests.yml index 28a00fc3ff..87e302ae19 100644 --- a/.github/workflows/functions_online-emulated-tests.yml +++ b/.github/workflows/functions_online-emulated-tests.yml @@ -263,9 +263,9 @@ jobs: npm run test-online:ci -- --forceExit --findRelatedTests ./test/cron/proposal.cron.spec.ts && npm run test-online:ci -- --forceExit --findRelatedTests ./test/db.roll.spec.ts && npm run test-online:ci -- --forceExit --findRelatedTests ./test/dbroll/nft.auction.roll.spec.ts && + npm run test-online:ci -- --forceExit --findRelatedTests ./test/dbroll/set.project.spec.ts && npm run test-online:ci -- --forceExit --findRelatedTests ./test/stake/delete.stake.reward.spec.ts && - npm run test-online:ci -- --forceExit --findRelatedTests ./test/stake/stake.reward.cron.spec.ts && - npm run test-online:ci -- --forceExit --findRelatedTests ./test/storage/resize.img.spec.ts + npm run test-online:ci -- --forceExit --findRelatedTests ./test/stake/stake.reward.cron.spec.ts " --project dev --only functions,firestore,storage,ui,auth --export-on-exit=./firestore-data - name: Archive firestore data uses: actions/upload-artifact@v3 @@ -274,3 +274,38 @@ jobs: name: firestore-data-test-online-chunk_5 path: ./packages/functions/firestore-data/ retention-days: 1 + chunk_6: + needs: npm-install + runs-on: ubuntu-latest + timeout-minutes: 20 + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16.x + - uses: actions/cache@v3 + with: + path: | + node_modules + packages/functions/node_modules + packages/interfaces/node_modules + key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Init + run: | + npm run build:functions + npm install -g firebase-tools + - name: Test + working-directory: packages/functions + run: | + export GOOGLE_APPLICATION_CREDENTIALS="./test-service-account-key.json" + npm run milestone-sync & + firebase emulators:exec " + npm run test-online:ci -- --forceExit --findRelatedTests ./test/storage/resize.img.spec.ts + " --project dev --only functions,firestore,storage,ui,auth --export-on-exit=./firestore-data + - name: Archive firestore data + uses: actions/upload-artifact@v3 + if: ${{ failure() }} + with: + name: firestore-data-test-online-chunk_6 + path: ./packages/functions/firestore-data/ + retention-days: 1