Skip to content

Commit

Permalink
Merge pull request #2628 from build-5/feat/2611-auction
Browse files Browse the repository at this point in the history
Fixes
  • Loading branch information
adamunchained authored and Boldizsar Mezei committed Nov 6, 2023
2 parents 6e32b81 + 2512d6f commit ce3531a
Show file tree
Hide file tree
Showing 94 changed files with 3,686 additions and 1,809 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/action_deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
needs: [deploy_functions]
defaults:
run:
working-directory: packages/database
working-directory: packages/functions
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -101,7 +101,7 @@ jobs:
- name: Install dependencies
run: |
npm i -g ts-node
cd ../../ && npm run build:database
cd ../../ && npm run build:functions
- name: Set env vars
run: echo "$FUNCTIONS_ENV_VARS" >> .env
env:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/action_deploy-wen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
needs: [deploy_functions]
defaults:
run:
working-directory: packages/database
working-directory: packages/functions
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -81,7 +81,7 @@ jobs:
- name: Install dependencies
run: |
npm i -g ts-node
cd ../../ && npm run build:database
cd ../../ && npm run build:functions
- name: Set env vars
run: echo "$FUNCTIONS_ENV_VARS" >> .env
env:
Expand Down
87 changes: 63 additions & 24 deletions .github/workflows/functions_emulated-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ jobs:
firebase emulators:exec "
npm run test:ci -- --forceExit --findRelatedTests ./test/auth.spec.ts &&
npm run test:ci -- --forceExit --findRelatedTests ./test/controls/address.spec.ts &&
npm run test:ci -- --forceExit --findRelatedTests ./test/controls/auction/auction.bid.spec.ts &&
npm run test:ci -- --forceExit --findRelatedTests ./test/controls/collection.spec.ts &&
npm run test:ci -- --forceExit --findRelatedTests ./test/controls/member.spec.ts &&
npm run test:ci -- --forceExit --findRelatedTests ./test/controls/nft-bidding.spec.ts &&
npm run test:ci -- --forceExit --findRelatedTests ./test/controls/nft.spec.ts &&
npm run test:ci -- --forceExit --findRelatedTests ./test/controls/order.spec.ts
npm run test:ci -- --forceExit --findRelatedTests ./test/controls/nft/nft.bidding.extends.spec.ts
" --project dev --only functions,firestore,storage,ui,auth --export-on-exit=./firestore-data
- name: Archive firestore data
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -93,13 +93,13 @@ jobs:
export GOOGLE_APPLICATION_CREDENTIALS="./test-service-account-key.json"
npm run milestone-sync &
firebase emulators:exec "
npm run test:ci -- --forceExit --findRelatedTests ./test/controls/nft/nft.bidding.finalize.spec.ts &&
npm run test:ci -- --forceExit --findRelatedTests ./test/controls/nft/nft.bidding.spec.ts &&
npm run test:ci -- --forceExit --findRelatedTests ./test/controls/nft/nft.set.for.sale.spec.ts &&
npm run test:ci -- --forceExit --findRelatedTests ./test/controls/order.spec.ts &&
npm run test:ci -- --forceExit --findRelatedTests ./test/controls/project/project.create.spec.ts &&
npm run test:ci -- --forceExit --findRelatedTests ./test/controls/project/project.deactivate.spec.ts &&
npm run test:ci -- --forceExit --findRelatedTests ./test/controls/proposal.spec.ts &&
npm run test:ci -- --forceExit --findRelatedTests ./test/controls/space.spec.ts &&
npm run test:ci -- --forceExit --findRelatedTests ./test/controls/stake.reward.spec.ts &&
npm run test:ci -- --forceExit --findRelatedTests ./test/controls/stamp.control.spec.ts &&
npm run test:ci -- --forceExit --findRelatedTests ./test/controls/token-distribution-auto-trigger.spec.ts
npm run test:ci -- --forceExit --findRelatedTests ./test/controls/proposal.spec.ts
" --project dev --only functions,firestore,storage,ui,auth --export-on-exit=./firestore-data
- name: Archive firestore data
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -134,13 +134,13 @@ jobs:
export GOOGLE_APPLICATION_CREDENTIALS="./test-service-account-key.json"
npm run milestone-sync &
firebase emulators:exec "
npm run test:ci -- --forceExit --findRelatedTests ./test/controls/space.spec.ts &&
npm run test:ci -- --forceExit --findRelatedTests ./test/controls/stake.reward.spec.ts &&
npm run test:ci -- --forceExit --findRelatedTests ./test/controls/stamp.control.spec.ts &&
npm run test:ci -- --forceExit --findRelatedTests ./test/controls/token-distribution-auto-trigger.spec.ts &&
npm run test:ci -- --forceExit --findRelatedTests ./test/controls/token-distribution.spec.ts &&
npm run test:ci -- --forceExit --findRelatedTests ./test/controls/token-trade.buy.spec.ts &&
npm run test:ci -- --forceExit --findRelatedTests ./test/controls/token-trade.sell.spec.ts &&
npm run test:ci -- --forceExit --findRelatedTests ./test/controls/token-trade.trigger.spec.ts &&
npm run test:ci -- --forceExit --findRelatedTests ./test/controls/token.expired.sale.cron.spec.ts &&
npm run test:ci -- --forceExit --findRelatedTests ./test/controls/token.order.spec.ts &&
npm run test:ci -- --forceExit --findRelatedTests ./test/controls/token/token.airdrop.claim.spec.ts
npm run test:ci -- --forceExit --findRelatedTests ./test/controls/token-trade.sell.spec.ts
" --project dev --only functions,firestore,storage,ui,auth --export-on-exit=./firestore-data
- name: Archive firestore data
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -175,13 +175,13 @@ jobs:
export GOOGLE_APPLICATION_CREDENTIALS="./test-service-account-key.json"
npm run milestone-sync &
firebase emulators:exec "
npm run test:ci -- --forceExit --findRelatedTests ./test/controls/token-trade.trigger.spec.ts &&
npm run test:ci -- --forceExit --findRelatedTests ./test/controls/token.expired.sale.cron.spec.ts &&
npm run test:ci -- --forceExit --findRelatedTests ./test/controls/token.order.spec.ts &&
npm run test:ci -- --forceExit --findRelatedTests ./test/controls/token/token.airdrop.claim.spec.ts &&
npm run test:ci -- --forceExit --findRelatedTests ./test/controls/token/token.airdrop.spec.ts &&
npm run test:ci -- --forceExit --findRelatedTests ./test/controls/token/token.cancel.pub.sale.spec.ts &&
npm run test:ci -- --forceExit --findRelatedTests ./test/controls/token/token.create.spec.ts &&
npm run test:ci -- --forceExit --findRelatedTests ./test/controls/token/token.order.and.claim.air.spec.ts &&
npm run test:ci -- --forceExit --findRelatedTests ./test/controls/token/token.rank.spec.ts &&
npm run test:ci -- --forceExit --findRelatedTests ./test/controls/token/token.set.to.sale.spec.ts &&
npm run test:ci -- --forceExit --findRelatedTests ./test/controls/token/token.update.spec.ts
npm run test:ci -- --forceExit --findRelatedTests ./test/controls/token/token.create.spec.ts
" --project dev --only functions,firestore,storage,ui,auth --export-on-exit=./firestore-data
- name: Archive firestore data
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -216,13 +216,13 @@ jobs:
export GOOGLE_APPLICATION_CREDENTIALS="./test-service-account-key.json"
npm run milestone-sync &
firebase emulators:exec "
npm run test:ci -- --forceExit --findRelatedTests ./test/controls/token/token.order.and.claim.air.spec.ts &&
npm run test:ci -- --forceExit --findRelatedTests ./test/controls/token/token.rank.spec.ts &&
npm run test:ci -- --forceExit --findRelatedTests ./test/controls/token/token.set.to.sale.spec.ts &&
npm run test:ci -- --forceExit --findRelatedTests ./test/controls/token/token.update.spec.ts &&
npm run test:ci -- --forceExit --findRelatedTests ./test/controls/token/token.vote.spec.ts &&
npm run test:ci -- --forceExit --findRelatedTests ./test/controls/workflow-online.spec.ts &&
npm run test:ci -- --forceExit --findRelatedTests ./test/controls/workflow.spec.ts &&
npm run test:ci -- --forceExit --findRelatedTests ./test/cron/floor-price.cron.only.spec.ts &&
npm run test:ci -- --forceExit --findRelatedTests ./test/cron/nft-stake.cron.spec.ts &&
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/controls/workflow.spec.ts
" --project dev --only functions,firestore,storage,ui,auth --export-on-exit=./firestore-data
- name: Archive firestore data
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -257,9 +257,13 @@ jobs:
export GOOGLE_APPLICATION_CREDENTIALS="./test-service-account-key.json"
npm run milestone-sync &
firebase emulators:exec "
npm run test:ci -- --forceExit --findRelatedTests ./test/cron/floor-price.cron.only.spec.ts &&
npm run test:ci -- --forceExit --findRelatedTests ./test/cron/nft-stake.cron.spec.ts &&
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/storage/resize.img.spec.ts
npm run test: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
Expand All @@ -268,3 +272,38 @@ jobs:
name: firestore-data-test-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: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-chunk_6
path: ./packages/functions/firestore-data/
retention-days: 1
Loading

0 comments on commit ce3531a

Please sign in to comment.