Skip to content

Commit

Permalink
ci: upload fixed paths
Browse files Browse the repository at this point in the history
I hate this
  • Loading branch information
Hertzole committed Jan 15, 2024
1 parent 9bfca48 commit c062d95
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,6 @@ jobs:
name: Test results - ${{ matrix.unity-version }}
path: ${{ steps.tests.outputs.artifactsPath }}

# The test results have a different path than what SonarQube can read.
# We need to remove the github/workspace/ path.
- name: Fix paths
run: |
chmod +x ./ci/fix_paths.sh
./ci/fix_paths.sh ${{ steps.tests.outputs.coveragePath }}
# Upload coverage results
- name: Upload test results
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -137,6 +130,20 @@ jobs:
name: Coverage results - 2021.3.34f1
path: Coverage

# The test results have a different path than what SonarQube can read.
# We need to remove the github/workspace/ path.
- name: Fix paths
run: |
chmod +x ./ci/fix_paths.sh
./ci/fix_paths.sh Coverage
# For now, just upload the fixed paths
- name: Upload fixed paths
uses: actions/upload-artifact@v4
with:
name: Fixed paths
path: Coverage

- name: SonarQube analysis
env:
FrameworkPathOverride: /opt/unity/Editor/Data/MonoBleedingEdge/
Expand Down

0 comments on commit c062d95

Please sign in to comment.