Skip to content

Commit 9c07bb6

Browse files
authored
test: move test upload logic to using submodule with external repository (#448)
* remove old scripts and add submodule for upload scripts * typo * change submodule dir name * remove old submodule path in gitmodules
1 parent fed09ea commit 9c07bb6

File tree

5 files changed

+14
-162
lines changed

5 files changed

+14
-162
lines changed

.github/workflows/test.yml

+10-4
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,14 @@ jobs:
1313
env:
1414
EXIT_STATUS: 0
1515
steps:
16-
- uses: actions/checkout@v4
17-
- uses: actions/setup-go@v5
16+
- name: Clone Repository
17+
uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
20+
submodules: 'recursive'
21+
22+
- name: Set up Go
23+
uses: actions/setup-go@v5
1824
with:
1925
go-version: 'stable'
2026
- run: go version
@@ -64,7 +70,7 @@ jobs:
6470
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
6571
run: |
6672
filename=$(ls | grep -E '^[0-9]{12}_linodego_test_report\.xml$')
67-
python scripts/add_to_xml_test_report.py \
73+
python tod_scripts/add_to_xml_test_report.py \
6874
--branch_name "${GITHUB_REF#refs/*/}" \
6975
--gha_run_id "$GITHUB_RUN_ID" \
7076
--gha_run_number "$GITHUB_RUN_NUMBER" \
@@ -77,7 +83,7 @@ jobs:
7783
LINODE_CLI_OBJ_SECRET_KEY: ${{ secrets.LINODE_CLI_OBJ_SECRET_KEY }}
7884
run: |
7985
report_filename=$(ls | grep -E '^[0-9]{12}_linodego_test_report\.xml$')
80-
python3 scripts/test_report_upload_script.py "${report_filename}"
86+
python tod_scripts/test_report_upload_script.py "${report_filename}"
8187
8288
- name: Test Execution Status Handler
8389
run: |

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "tod_scripts"]
2+
path = tod_scripts
3+
url = https://github.com/linode/TOD-test-report-uploader.git

scripts/add_to_xml_test_report.py

-68
This file was deleted.

scripts/test_report_upload_script.py

-90
This file was deleted.

tod_scripts

Submodule tod_scripts added at eec4b99

0 commit comments

Comments
 (0)