Browse Source

fix(test): Added quick tests to sqlite workers

pull/4278/head
Muhammed Mustafa 2 years ago
parent
commit
0a24e386b5
  1. 15
      .github/workflows/playwright-test-workflow.yml

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

@ -62,6 +62,10 @@ jobs:
if: ${{ inputs.db == 'pg' }}
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' }}
working-directory: ./
run: docker-compose -f ./packages/nc-gui/tests/playwright/scripts/docker-compose-pg-pw-quick.yml up -d &
- name: run frontend
working-directory: ./packages/nc-gui
run: npm run ci:run
@ -97,6 +101,17 @@ jobs:
name: playwright-report-${{ inputs.db }}-${{ inputs.shard }}
path: ./packages/nc-gui/tests/playwright/playwright-report/
retention-days: 2
# 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'
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
- name: Run quick server and tests (sqlite)
if: (inputs.db == 'sqlite') && inputs.shard == '1'
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
- uses: actions/upload-artifact@v3
if: always()
with:

Loading…
Cancel
Save