From 815013446f298771d230b2a0252fea700e6ab372 Mon Sep 17 00:00:00 2001 From: Muhammed Mustafa Date: Mon, 28 Nov 2022 17:29:23 +0530 Subject: [PATCH] feat(test): Disabled everything except stress testing on CI --- .../workflows/playwright-test-workflow.yml | 86 +++++++++---------- 1 file changed, 43 insertions(+), 43 deletions(-) diff --git a/.github/workflows/playwright-test-workflow.yml b/.github/workflows/playwright-test-workflow.yml index 7938de59e8..b8c78487c0 100644 --- a/.github/workflows/playwright-test-workflow.yml +++ b/.github/workflows/playwright-test-workflow.yml @@ -94,9 +94,9 @@ jobs: sleep 2 done - - name: Run Playwright tests - working-directory: ./tests/playwright - run: E2E_DB_TYPE=${{ inputs.db }} npm run ci:test:shard:${{ inputs.shard }} + # - name: Run Playwright tests + # working-directory: ./tests/playwright + # run: E2E_DB_TYPE=${{ inputs.db }} npm run ci:test:shard:${{ inputs.shard }} # Stress test added/modified tests - name: Fetch develop branch @@ -107,46 +107,46 @@ jobs: run: E2E_DB_TYPE=${{ inputs.db }} ./scripts/stressTestNewlyAddedTest.js # Quick tests (pg on sqlite shard 0 and sqlite on sqlite shard 1) - - name: Run quick server and tests (pg) - if: ${{ inputs.db == 'sqlite' && inputs.shard == '1' }} - working-directory: ./packages/nocodb - run: | - kill -9 $(lsof -t -i:8080) - npm run watch:run:playwright:pg:cyquick & - - name: Run quick server and tests (sqlite) - if: ${{ inputs.db == 'sqlite' && inputs.shard == '2' }} - working-directory: ./packages/nocodb - run: | - kill -9 $(lsof -t -i:8080) - npm run watch:run:playwright:quick > quick_${{ inputs.shard }}_test_backend.log & - - name: Wait for backend & run quick tests - if: ${{ inputs.db == 'sqlite' }} - working-directory: ./tests/playwright - run: | - while ! curl --output /dev/null --silent --head --fail http://localhost:8080; do - printf '.' - sleep 2 - done - PLAYWRIGHT_HTML_REPORT=playwright-report-quick npm run test:quick - - uses: actions/upload-artifact@v3 - if: ${{ inputs.db == 'sqlite' }} - with: - name: quick-backend-log-${{ inputs.shard }} - path: ./packages/nocodb/quick_${{ inputs.shard }}_test_backend.log - retention-days: 2 - - uses: actions/upload-artifact@v3 - if: ${{ inputs.db == 'sqlite' }} - with: - name: playwright-report-quick-${{ inputs.shard }} - path: ./tests/playwright/playwright-report-quick/ - retention-days: 2 - - - uses: actions/upload-artifact@v3 - if: always() - with: - name: playwright-report-${{ inputs.db }}-${{ inputs.shard }} - path: ./tests/playwright/playwright-report/ - retention-days: 2 + # - name: Run quick server and tests (pg) + # if: ${{ inputs.db == 'sqlite' && inputs.shard == '1' }} + # working-directory: ./packages/nocodb + # run: | + # kill -9 $(lsof -t -i:8080) + # npm run watch:run:playwright:pg:cyquick & + # - name: Run quick server and tests (sqlite) + # if: ${{ inputs.db == 'sqlite' && inputs.shard == '2' }} + # working-directory: ./packages/nocodb + # run: | + # kill -9 $(lsof -t -i:8080) + # npm run watch:run:playwright:quick > quick_${{ inputs.shard }}_test_backend.log & + # - name: Wait for backend & run quick tests + # if: ${{ inputs.db == 'sqlite' }} + # working-directory: ./tests/playwright + # run: | + # while ! curl --output /dev/null --silent --head --fail http://localhost:8080; do + # printf '.' + # sleep 2 + # done + # PLAYWRIGHT_HTML_REPORT=playwright-report-quick npm run test:quick + # - uses: actions/upload-artifact@v3 + # if: ${{ inputs.db == 'sqlite' }} + # with: + # name: quick-backend-log-${{ inputs.shard }} + # path: ./packages/nocodb/quick_${{ inputs.shard }}_test_backend.log + # retention-days: 2 + # - uses: actions/upload-artifact@v3 + # if: ${{ inputs.db == 'sqlite' }} + # with: + # name: playwright-report-quick-${{ inputs.shard }} + # path: ./tests/playwright/playwright-report-quick/ + # retention-days: 2 + + # - uses: actions/upload-artifact@v3 + # if: always() + # with: + # name: playwright-report-${{ inputs.db }}-${{ inputs.shard }} + # path: ./tests/playwright/playwright-report/ + # retention-days: 2 - uses: actions/upload-artifact@v3 if: always() with: