Skip to content

Commit 5f8281d

Browse files
ykim-akamaizliang-akamailgarber-akamai
authored
test: upload xml reports to test account's obj storage (#517)
Co-authored-by: Zhiwei Liang <[email protected]> Co-authored-by: Lena Garber <[email protected]>
1 parent 5b08b3e commit 5f8281d

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/e2e-suite.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,20 @@ jobs:
3636
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3737

3838
- name: Run the integration test suite
39-
run: make testint
39+
run: |
40+
timestamp=$(date +'%Y%m%d%H%M')
41+
report_filename="${timestamp}_cli_test_report.xml"
42+
status=0
43+
if ! pytest -m tests/integration --disable-warnings --junitxml="${report_filename}"; then
44+
echo "Tests failed, but attempting to upload results anyway"
45+
fi
4046
env:
4147
LINODE_CLI_TOKEN: ${{ secrets.LINODE_TOKEN }}
48+
49+
- name: Upload test results
50+
run: |
51+
linode-cli obj --cluster us-southeast-1 put "${report_filename}" dx-test-results
52+
env:
53+
LINODE_CLI_TOKEN: ${{ secrets.SHARED_DX_TOKEN }}
54+
LINODE_CLI_OBJ_ACCESS_KEY: ${{ secrets.LINODE_CLI_OBJ_ACCESS_KEY }}
55+
LINODE_CLI_OBJ_SECRET_KEY: ${{ secrets.LINODE_CLI_OBJ_SECRET_KEY }}

0 commit comments

Comments
 (0)