Browse Source

fix(nocodb): Test commit for investingating issues with GH action

pull/4820/head
Muhammed Mustafa 1 year ago
parent
commit
bfef044f15
  1. 21
      .github/workflows/playwright-test-workflow.yml

21
.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

Loading…
Cancel
Save