feat: add support for XA transactions and update database provider de… #733
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: SonarQube | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "src/**" | |
- "tests/**" | |
- ".github/workflows/sonar.yml" | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
jobs: | |
build: | |
name: Build and analyze | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v5 | |
with: | |
java-version: 17 | |
distribution: "zulu" | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 9.0.x | |
- name: Setup Bun | |
uses: oven-sh/setup-bun@v2 | |
with: | |
bun-version-file: ".bun-version" | |
- uses: actions/checkout@v5 | |
with: | |
fetch-depth: 0 | |
- name: Cache SonarQube Cloud packages | |
uses: actions/cache@v4 | |
with: | |
path: ~\sonar\cache | |
key: ${{ runner.os }}-sonar | |
restore-keys: ${{ runner.os }}-sonar | |
- name: Cache SonarQube Cloud scanner | |
id: cache-sonar-scanner | |
uses: actions/cache@v4 | |
with: | |
path: .\.sonar\scanner | |
key: ${{ runner.os }}-sonar-scanner | |
restore-keys: ${{ runner.os }}-sonar-scanner | |
- name: Install Tools | |
run: dotnet tool restore | |
- name: Sonarqube Begin | |
run: dotnet dotnet-sonarscanner begin /k:"foxminchan_BookWorm" /o:"foxminchan" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /s:$GITHUB_WORKSPACE/SonarQube.Analysis.xml | |
env: | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
- name: Build | |
run: dotnet dotnet build --configuration Release | |
- name: Test | |
run: > | |
dotnet test | |
--configuration Release | |
--logger console --logger trx --logger html --logger GitHubActions | |
-- | |
--report-trx | |
--results-directory ./test-results | |
--coverage | |
--coverage-output-format xml | |
--hangdump --hangdump-timeout 7m | |
--crashdump | |
--timeout 15m | |
- name: Sonarqube End | |
run: dotnet dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}" | |
env: | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |