Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
 into develop
  • Loading branch information
huaxing-yuan committed Aug 21, 2024
2 parents 6666a23 + e14fdae commit 2809dc8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 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.base_ref}}".Contains("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
8 changes: 4 additions & 4 deletions .github/workflows/build-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ name: Build WebEngine (Develop)

on:
push:
branches: [ "develop"]
pull_request:
branches: [ "develop" ]

branches:
- develop
- main
- preview
jobs:
build:
runs-on: windows-latest
Expand Down

0 comments on commit 2809dc8

Please sign in to comment.