From d71eb87305b42545be3ba43bec86c46ff23288f6 Mon Sep 17 00:00:00 2001 From: Muhammed Mustafa Date: Fri, 27 Jan 2023 11:05:58 +0530 Subject: [PATCH] fix(nocodb): Test commit for investingating issues with GH action --- .../workflows/playwright-test-workflow.yml | 36 +++++++++++-------- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/.github/workflows/playwright-test-workflow.yml b/.github/workflows/playwright-test-workflow.yml index 1ea4c34a90..5e76b1820c 100644 --- a/.github/workflows/playwright-test-workflow.yml +++ b/.github/workflows/playwright-test-workflow.yml @@ -70,6 +70,27 @@ jobs: run: | npm install npm run watch:run:playwright > ${{ inputs.db }}_${{ inputs.shard }}_test_backend.log & + - name: Wait for backend + run: | + while ! curl --output /dev/null --silent --head --fail http://localhost:8080; do + printf '.' + sleep 2 + done + - 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 - name: run frontend working-directory: ./packages/nc-gui run: npm run ci:run @@ -107,21 +128,6 @@ jobs: 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: