Browse Source

pw logs in self hosted runner

pull/6283/head
starbirdtech383 1 year ago
parent
commit
f9e491857b
  1. 18
      .github/workflows/playwright-test-workflow.yml

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

@ -199,4 +199,20 @@ jobs:
working-directory: ./packages/nocodb working-directory: ./packages/nocodb
run: | run: |
service postgresql stop 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