Browse Source

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

pull/4820/head
Muhammed Mustafa 2 years 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' }} if: ${{ inputs.db == 'sqlite' && inputs.shard == '1' }}
working-directory: ./ working-directory: ./
run: docker-compose -f ./tests/playwright/scripts/docker-compose-pg-pw-quick.yml up -d & 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 - name: Run backend
working-directory: ./packages/nocodb working-directory: ./packages/nocodb
run: | run: |
npm install 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 - name: Cache playwright npm modules
uses: actions/cache@v3 uses: actions/cache@v3
id: playwright-cache id: playwright-cache
@ -87,12 +94,6 @@ jobs:
- name: Install Playwright Browsers - name: Install Playwright Browsers
working-directory: ./tests/playwright working-directory: ./tests/playwright
run: npx playwright install chromium --with-deps 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 - name: Run Playwright tests
working-directory: ./tests/playwright working-directory: ./tests/playwright

Loading…
Cancel
Save