diff --git a/.github/workflows/playwright-test-workflow.yml b/.github/workflows/playwright-test-workflow.yml index 4a6a4d6ceb..bb6b9ec55e 100644 --- a/.github/workflows/playwright-test-workflow.yml +++ b/.github/workflows/playwright-test-workflow.yml @@ -65,14 +65,21 @@ jobs: if: ${{ inputs.db == 'sqlite' && inputs.shard == '1' }} working-directory: ./ run: docker-compose -f ./tests/playwright/scripts/docker-compose-pg-pw-quick.yml up -d & - # - name: run frontend - # working-directory: ./packages/nc-gui - # run: npm run ci:run - name: Run backend working-directory: ./packages/nocodb run: | npm install - npm run watch:run:playwright + 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 + curl --head http://localhost:8080; + printf '.' + sleep 2 + done + - name: run frontend + working-directory: ./packages/nc-gui + run: npm run ci:run - name: Cache playwright npm modules uses: actions/cache@v3 id: playwright-cache @@ -87,12 +94,6 @@ jobs: - name: Install Playwright Browsers working-directory: ./tests/playwright run: npx playwright install chromium --with-deps - - name: Wait for backend - run: | - while ! curl --output /dev/null --silent --head --fail http://localhost:8080; do - printf '.' - sleep 2 - done - name: Run Playwright tests working-directory: ./tests/playwright