|
|
@ -70,6 +70,27 @@ jobs: |
|
|
|
run: | |
|
|
|
run: | |
|
|
|
npm install |
|
|
|
npm install |
|
|
|
npm run watch:run:playwright > ${{ inputs.db }}_${{ inputs.shard }}_test_backend.log & |
|
|
|
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 |
|
|
|
- name: run frontend |
|
|
|
working-directory: ./packages/nc-gui |
|
|
|
working-directory: ./packages/nc-gui |
|
|
|
run: npm run ci:run |
|
|
|
run: npm run ci:run |
|
|
@ -107,21 +128,6 @@ jobs: |
|
|
|
run: | |
|
|
|
run: | |
|
|
|
kill -9 $(lsof -t -i:8080) |
|
|
|
kill -9 $(lsof -t -i:8080) |
|
|
|
npm run watch:run:playwright:pg:cyquick & |
|
|
|
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 |
|
|
|
- uses: actions/upload-artifact@v3 |
|
|
|
if: ${{ inputs.db == 'sqlite' }} |
|
|
|
if: ${{ inputs.db == 'sqlite' }} |
|
|
|
with: |
|
|
|
with: |
|
|
|