Browse Source

fix(test): Added quick tests to sqlite workers

pull/4278/head
Muhammed Mustafa 2 years ago
parent
commit
58eb254a88
  1. 18
      .github/workflows/playwright-test-workflow.yml

18
.github/workflows/playwright-test-workflow.yml

@ -63,7 +63,7 @@ jobs:
working-directory: ./
run: docker-compose -f ./packages/nc-gui/tests/playwright/scripts/docker-compose-playwright-pg.yml up -d &
- name: setup pg for quick tests
if: ${{ inputs.db == 'sqlite' && inputs.shard == '0' }}
if: ${{ inputs.db == 'sqlite' && inputs.shard == '1' }}
working-directory: ./
run: docker-compose -f ./packages/nc-gui/tests/playwright/scripts/docker-compose-pg-pw-quick.yml up -d &
- name: run frontend
@ -99,13 +99,21 @@ jobs:
# 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 == '0' }}
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 &; cd ../nc-gui/tests/playwright; npm run ci:test:quick
run: |
kill -9 $(lsof -t -i:8080)
npm run watch:run:playwright:pg:cyquick &
cd ../nc-gui/tests/playwright
npm run ci:test:quick
- name: Run quick server and tests (sqlite)
if: ${{ inputs.db == 'sqlite' && inputs.shard == '1' }}
if: ${{ inputs.db == 'sqlite' && inputs.shard == '2' }}
working-directory: ./packages/nocodb
run: kill -9 $(lsof -t -i:8080); npm run watch:run:playwright:quick &; cd ../nc-gui/tests/playwright; npm run ci:test:quick
run: |
kill -9 $(lsof -t -i:8080)
npm run watch:run:playwright:quick &
cd ../nc-gui/tests/playwright
npm run ci:test:quick
- uses: actions/upload-artifact@v3
if: always()

Loading…
Cancel
Save