Skip to content

Commit

Permalink
test: move test upload logic to using submodule with external reposit…
Browse files Browse the repository at this point in the history
…ory (#448)

* remove old scripts and add submodule for upload scripts

* typo

* change submodule dir name

* remove old submodule path in gitmodules
  • Loading branch information
ykim-1 committed Jan 4, 2024
1 parent fed09ea commit 9c07bb6
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 162 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,14 @@ jobs:
env:
EXIT_STATUS: 0
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
- name: Clone Repository
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: 'recursive'

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 'stable'
- run: go version
Expand Down Expand Up @@ -64,7 +70,7 @@ jobs:
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
run: |
filename=$(ls | grep -E '^[0-9]{12}_linodego_test_report\.xml$')
python scripts/add_to_xml_test_report.py \
python tod_scripts/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 @@ -77,7 +83,7 @@ jobs:
LINODE_CLI_OBJ_SECRET_KEY: ${{ secrets.LINODE_CLI_OBJ_SECRET_KEY }}
run: |
report_filename=$(ls | grep -E '^[0-9]{12}_linodego_test_report\.xml$')
python3 scripts/test_report_upload_script.py "${report_filename}"
python tod_scripts/test_report_upload_script.py "${report_filename}"
- name: Test Execution Status Handler
run: |
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "tod_scripts"]
path = tod_scripts
url = https://github.com/linode/TOD-test-report-uploader.git
68 changes: 0 additions & 68 deletions scripts/add_to_xml_test_report.py

This file was deleted.

90 changes: 0 additions & 90 deletions scripts/test_report_upload_script.py

This file was deleted.

1 change: 1 addition & 0 deletions tod_scripts
Submodule tod_scripts added at eec4b9

0 comments on commit 9c07bb6

Please sign in to comment.