Skip to content

Commit

Permalink
move test upload logic to git submodule, and use it in e2e workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ykim-akamai committed Jan 2, 2024
1 parent 33d7054 commit 52489d0
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 120 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/e2e-test-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
- name: Add additional information to XML report
run: |
filename=$(ls | grep -E '^[0-9]{12}_sdk_test_report\.xml$')
python test/script/add_to_xml_test_report.py \
python script/script/add_to_xml_test_report.py \
--branch_name "${GITHUB_REF#refs/*/}" \
--gha_run_id "$GITHUB_RUN_ID" \
--gha_run_number "$GITHUB_RUN_NUMBER" \
Expand All @@ -103,7 +103,7 @@ jobs:
- name: Upload test results
run: |
report_filename=$(ls | grep -E '^[0-9]{12}_sdk_test_report\.xml$')
python3 test/script/test_report_upload_script.py "${report_filename}"
python3 script/script/test_report_upload_script.py "${report_filename}"
env:
LINODE_CLI_OBJ_ACCESS_KEY: ${{ secrets.LINODE_CLI_OBJ_ACCESS_KEY }}
LINODE_CLI_OBJ_SECRET_KEY: ${{ secrets.LINODE_CLI_OBJ_SECRET_KEY }}
Expand Down
6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[submodule "test/todscript"]
path = test/todscript
url = https://github.com/linode/TOD-test-report-uploader.git
[submodule "script"]
path = script
url = https://github.com/linode/TOD-test-report-uploader.git
1 change: 1 addition & 0 deletions script
Submodule script added at 6a30cf
75 changes: 0 additions & 75 deletions test/script/add_to_xml_test_report.py

This file was deleted.

43 changes: 0 additions & 43 deletions test/script/test_report_upload_script.py

This file was deleted.

0 comments on commit 52489d0

Please sign in to comment.