Browse Source

Merge pull request #6283 from nocodb/pw_tests_logs

pw logs in self hosted runner
pull/6284/head
starbirdtech383 1 year ago committed by GitHub
parent
commit
6e2a05db7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 18
      .github/workflows/playwright-test-workflow.yml

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

@ -199,4 +199,20 @@ jobs:
working-directory: ./packages/nocodb
run: |
service postgresql stop
service mysql stop
service mysql stop
- name: Copy Artifacts to Local Artifacts Dir
if: always()
working-directory: ./
run: |
# expects the variables to be available in runner context.
path="gh-artifacts/runs/${GITHUB_RUN_ID}/run-attempt/${GITHUB_RUN_ATTEMPT}/job_name/"${GITHUB_JOB}"-${{ inputs.shard }}/${RANDOM}-$(date +%s)"
target_dir="/mnt/${path}"
mkdir -p ${target_dir}
mkdir -p ${target_dir}/playwright-report
# start : add any artifacts to be copied here
cp -r ./tests/playwright/playwright-report ${target_dir}/ || echo "playwright reports directory does not exists" >> ${target_dir}/playwright-report/index.html
cp ./packages/nocodb/*_test_backend.log ${target_dir}/ || echo "backend logs file does not exists" >> ${target_dir}/index.html
# end: artifacts copy
SUMMARY='[Artifacts](http://135.181.48.96/'${path}')
[playwright-report](http://135.181.48.96/'${path}'/playwright-report)'
echo "$SUMMARY" >> $GITHUB_STEP_SUMMARY
Loading…
Cancel
Save