From 66d706024d0b9d750da76829a7e5f9688f7e791e Mon Sep 17 00:00:00 2001 From: Lukas Aldershaab Date: Wed, 12 Apr 2023 00:34:42 +0200 Subject: [PATCH] Make all test result paths conform to the Linux runner setup --- .github/workflows/cmake.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index d198bbbd5..8946c8180 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -66,6 +66,25 @@ jobs: fi shell: bash + # Make all paths conform to the Unix runner setup: + - name: Replace Absolute Paths In Test Report + run: | + import os + dir = os.environ["WorkspaceDirectory"] + filePath = dir + "/My Projects/Torque3D/game/test_detail.xml" + f = open(filePath, 'r') + filedata = f.read() + f.close() + + filedata = filedata.replace(dir, "/home/runner/work/Torque3D/Torque3D").replace("\\", "/") + + f = open(filePath, 'w') + f.write(filedata) + f.close() + shell: python + env: + WorkspaceDirectory: ${{github.workspace}} + - name: Upload Test Report uses: actions/upload-artifact@v3 if: always() # always run even if the previous step fails