Skip to content

Commit

Permalink
Merge branch 'main' into preview
Browse files Browse the repository at this point in the history
  • Loading branch information
huaxing-yuan authored Apr 26, 2024
2 parents b1f04a9 + aa00eb4 commit 4589cf7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build-and-publish-PROnly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ name: Build WebEngine (Main Branch Only)

on:
pull_request:
branches: [ "main" ]
branches:
- main
- 'preview/**'
- preview

jobs:
build:
Expand Down Expand Up @@ -60,8 +63,9 @@ jobs:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
shell: powershell
run: |
if("${{github.ref}}" -eq "refs/heads/main") { $suffix = "" } else { $suffix = "-preview" })
.\.sonar\scanner\dotnet-sonarscanner begin /k:"AxaGuilDEv_webengine-dotnet" /o:"axaguildev" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.vscoveragexml.reportsPaths=coverage.xml
dotnet build "./src" --no-restore --configuration Debug -p:Version=1.2.${{github.run_number}}
dotnet build "./src" --no-restore --configuration Debug -p:AssemblyVersion=1.2.${{github.run_number}} -p:Version=1.2.${{github.run_number}}$suffix
dotnet-coverage collect 'dotnet test "./src/WebEngine.Test" --filter TestCategory!=Mobile' -f xml -o 'coverage.xml'
.\.sonar\scanner\dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
Expand Down

0 comments on commit 4589cf7

Please sign in to comment.