272 feature verify textual notation on bigger model #961
Workflow file for this run
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: Build & Test & SonarQube | |
| on: | |
| push: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| env: | |
| # Use cached CRL data only for cert revocation checks. Works around | |
| # NU3012 ("certificate revoked") for transitive ReactiveUI / Splat 19.3.1 | |
| # packages whose author certificate (Glenn Watson) was revoked at the CA | |
| # in 2026-Q2. `signatureValidationMode=accept` in NuGet.Config does NOT | |
| # cover this case because it only relaxes the "require signature" check, | |
| # not the chain-validation step that NU3012 fires from. Revert this env | |
| # var once the affected packages are re-signed and re-published. | |
| NUGET_CERT_REVOCATION_MODE: offline | |
| steps: | |
| - uses: actions/checkout@v6.0.2 | |
| with: | |
| fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v5.2.0 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '17' | |
| overwrite-settings: false | |
| - name: Setup dotnet | |
| uses: actions/setup-dotnet@v5.1.0 | |
| with: | |
| dotnet-version: '10.0.x' | |
| - name: Restore dependencies | |
| run: dotnet restore SysML2.NET.sln | |
| - name: Sonarqube Begin | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | |
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
| SONAR_SCANNER_OPTS: "-Xmx4096m" | |
| run: | | |
| dotnet tool install --global dotnet-sonarscanner | |
| dotnet tool install --global dotnet-coverage | |
| dotnet sonarscanner begin /k:"STARIONGROUP_SysML2.NET" /o:"stariongroup" /d:sonar.token="$SONAR_TOKEN" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.vscoveragexml.reportsPaths=coverage.xml | |
| - name: Build | |
| run: dotnet build --no-restore --no-incremental /p:ContinuousIntegrationBuild=true | |
| - name: Run Tests and Compute Coverage | |
| run: dotnet-coverage collect "dotnet test SysML2.NET.sln --no-restore --no-build --verbosity normal" -f xml -o "coverage.xml" | |
| - name: Sonarqube end | |
| env: | |
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
| run: dotnet sonarscanner end /d:sonar.token="$SONAR_TOKEN" |