|
|
@ -70,14 +70,16 @@ jobs: |
|
|
|
run: npm run ci:run |
|
|
|
run: npm run ci:run |
|
|
|
- name: Run backend |
|
|
|
- name: Run backend |
|
|
|
working-directory: ./packages/nocodb |
|
|
|
working-directory: ./packages/nocodb |
|
|
|
run: npm run ci:run & |
|
|
|
run: | |
|
|
|
|
|
|
|
npm install |
|
|
|
|
|
|
|
npm run watch:run:playwright & > ${{ inputs.db }}_${{ inputs.shard }}_test_backend.log |
|
|
|
- name: Cache playwright npm modules |
|
|
|
- name: Cache playwright npm modules |
|
|
|
uses: actions/cache@v3 |
|
|
|
uses: actions/cache@v3 |
|
|
|
id: playwright-cache |
|
|
|
id: playwright-cache |
|
|
|
with: |
|
|
|
with: |
|
|
|
path: | |
|
|
|
path: | |
|
|
|
**/playwright/node_modules |
|
|
|
**/nocodb/packages/nc-gui/tests/playwright/node_modules |
|
|
|
key: cache-nc-playwright-${{ hashFiles('**/playwright/package-lock.json') }} |
|
|
|
key: cache-nc-playwright-${{ hashFiles('**/nocodb/packages/nc-gui/tests/playwright/package-lock.json') }} |
|
|
|
- name: Install dependencies |
|
|
|
- name: Install dependencies |
|
|
|
if: steps.playwright-cache.outputs.cache-hit != 'true' |
|
|
|
if: steps.playwright-cache.outputs.cache-hit != 'true' |
|
|
|
working-directory: ./packages/nc-gui/tests/playwright |
|
|
|
working-directory: ./packages/nc-gui/tests/playwright |
|
|
@ -108,7 +110,7 @@ jobs: |
|
|
|
working-directory: ./packages/nocodb |
|
|
|
working-directory: ./packages/nocodb |
|
|
|
run: | |
|
|
|
run: | |
|
|
|
kill -9 $(lsof -t -i:8080) |
|
|
|
kill -9 $(lsof -t -i:8080) |
|
|
|
npm run watch:run:playwright:quick & |
|
|
|
npm run watch:run:playwright:quick & > quick_${{ inputs.shard }}_test_backend.log |
|
|
|
- name: Wait for backend & run quick tests |
|
|
|
- name: Wait for backend & run quick tests |
|
|
|
if: ${{ inputs.db == 'sqlite' }} |
|
|
|
if: ${{ inputs.db == 'sqlite' }} |
|
|
|
working-directory: ./packages/nc-gui/tests/playwright |
|
|
|
working-directory: ./packages/nc-gui/tests/playwright |
|
|
@ -118,6 +120,12 @@ jobs: |
|
|
|
sleep 2 |
|
|
|
sleep 2 |
|
|
|
done |
|
|
|
done |
|
|
|
PLAYWRIGHT_HTML_REPORT=playwright-report-quick npm run test:quick |
|
|
|
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 |
|
|
|
- uses: actions/upload-artifact@v3 |
|
|
|
if: ${{ inputs.db == 'sqlite' }} |
|
|
|
if: ${{ inputs.db == 'sqlite' }} |
|
|
|
with: |
|
|
|
with: |
|
|
@ -135,5 +143,5 @@ jobs: |
|
|
|
if: always() |
|
|
|
if: always() |
|
|
|
with: |
|
|
|
with: |
|
|
|
name: backend-logs-${{ inputs.db }}-${{ inputs.shard }} |
|
|
|
name: backend-logs-${{ inputs.db }}-${{ inputs.shard }} |
|
|
|
path: ./packages/nocodb/mysql_test_backend.log |
|
|
|
path: ./packages/nocodb/${{ inputs.db }}_${{ inputs.shard }}_test_backend.log |
|
|
|
retention-days: 2 |
|
|
|
retention-days: 2 |