Skip to content

Commit

Permalink
fix (github-actions.yml): publish test results
Browse files Browse the repository at this point in the history
  • Loading branch information
ksidirop-laerdal committed Mar 14, 2024
1 parent 2a43067 commit 4665805
Showing 1 changed file with 30 additions and 22 deletions.
52 changes: 30 additions & 22 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,22 @@ env:
on:
push:
branches:
- "**" # only trigger on branches not on tags
- "**" # only trigger on branches not on tags

pull_request:
branches:
- "main"
- "develop"
- "main"
- "develop"

jobs:
build:

runs-on: macos-14

# variable substitution is not supported in github at all so we cant do stuff like this
#
# env:
# Build_Artifacts_Folderpath: $Build_Repository_Folderpath/Artifacts
# variable substitution is not supported in github at all so we cant do stuff like this
#
# env:
# Build_Artifacts_Folderpath: $Build_Repository_Folderpath/Artifacts

steps:

Expand All @@ -52,17 +52,25 @@ jobs:
Github_Repository_Path: ${{ github.repository }}
Components_Team_Github_Access_Token: ${{ secrets.components_team_github_access_token }}
run: |
cd "$Build_Repository_Folderpath" \
&& \
dotnet \
msbuild \
"Laerdal.McuMgr.Builder.targets" \
-m:1 \
-p:ShouldSkipMacCatalyst="true" \
\
-p:PackageOutputPath="$Build_Repository_Folderpath/Artifacts" \
-p:Laerdal_Gradle_Path="/opt/homebrew/opt/gradle@7/bin/gradle" \
-p:Laerdal_Source_Branch="$Source_Branch_Fullpath" \
-p:Laerdal_Repository_Path="$Github_Repository_Path" \
-p:Laerdal_Github_Access_Token="$Components_Team_Github_Access_Token" \
-p:Laerdal_Test_Results_Folderpath="$Build_Repository_Folderpath/TestResults"
cd "$Build_Repository_Folderpath" \
&& \
dotnet \
msbuild \
"Laerdal.McuMgr.Builder.targets" \
-m:1 \
-p:ShouldSkipMacCatalyst="true" \
\
-p:PackageOutputPath="$Build_Repository_Folderpath/Artifacts" \
-p:Laerdal_Gradle_Path="/opt/homebrew/opt/gradle@7/bin/gradle" \
-p:Laerdal_Source_Branch="$Source_Branch_Fullpath" \
-p:Laerdal_Repository_Path="$Github_Repository_Path" \
-p:Laerdal_Github_Access_Token="$Components_Team_Github_Access_Token" \
-p:Laerdal_Test_Results_Folderpath="$Build_Repository_Folderpath/TestResults"
- name: Publish Test Results # https://github.com/marketplace/actions/publish-test-results
uses: EnricoMi/publish-unit-test-result-action/macos@v2
if: always()
with:
files: |
$Build_Repository_Folderpath/TestResults/**/TEST-*.xml
$Build_Repository_Folderpath/TestResults/**/TEST-*.trx

0 comments on commit 4665805

Please sign in to comment.