Update HtmlReport.cshtml #511
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 & publish | |
| on: [push] | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| dotnet-version: [ '9.0.x' ] | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET Core SDK ${{ matrix.dotnet-version }} | |
| uses: actions/setup-dotnet@v3 | |
| with: | |
| dotnet-version: ${{ matrix.dotnet-version }} | |
| - name: Install dependencies | |
| run: dotnet restore | |
| working-directory: source | |
| - name: Build | |
| run: dotnet build --configuration Release --no-restore | |
| working-directory: source | |
| - name: Test | |
| run: dotnet test --no-restore --verbosity normal | |
| working-directory: source | |
| continue-on-error: true | |
| - name: Publish TS.NET.Engine | |
| working-directory: build-scripts | |
| run: | | |
| if [ "$RUNNER_OS" == "Linux" ]; then | |
| dotnet publish ../source/TS.NET.Engine/TS.NET.Engine.csproj -r linux-x64 -c Release --self-contained /p:PublishSingleFile=true /p:PublishTrimmed=true /p:IncludeNativeLibrariesForSelfExtract=true --output ../builds/TS.NET.Engine/linux-x64 | |
| elif [ "$RUNNER_OS" == "Windows" ]; then | |
| powershell -ExecutionPolicy Bypass -File "TS.NET.Engine (win-x64).ps1" | |
| elif [ "$RUNNER_OS" == "macOS" ]; then | |
| dotnet publish ../source/TS.NET.Engine/TS.NET.Engine.csproj -r osx-x64 -c Release --self-contained /p:PublishSingleFile=true /p:PublishTrimmed=true /p:IncludeNativeLibrariesForSelfExtract=true --output ../builds/TS.NET.Engine/macos-x64 | |
| dotnet publish ../source/TS.NET.Engine/TS.NET.Engine.csproj -r osx-arm64 -c Release --self-contained /p:PublishSingleFile=true /p:PublishTrimmed=true /p:IncludeNativeLibrariesForSelfExtract=true --output ../builds/TS.NET.Engine/macos-arm64 | |
| else | |
| echo "$RUNNER_OS not supported" | |
| exit 1 | |
| fi | |
| shell: bash | |
| - name: Upload TS.NET.Engine win-x64 build | |
| if: runner.os == 'Windows' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: TS.NET.Engine-win-x64 | |
| path: builds/TS.NET.Engine/win-x64/* | |
| - name: Upload TS.NET.Engine linux-x64 build | |
| if: runner.os == 'Linux' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: TS.NET.Engine-linux-x64 | |
| path: builds/TS.NET.Engine/linux-x64/* | |
| - name: Upload TS.NET.Engine macos-x64 build | |
| if: runner.os == 'macOS' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: TS.NET.Engine-macos-x64 | |
| path: builds/TS.NET.Engine/macos-x64/* | |
| - name: Upload TS.NET.Engine macos-arm64 build | |
| if: runner.os == 'macOS' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: TS.NET.Engine-macos-arm64 | |
| path: builds/TS.NET.Engine/macos-arm64/* | |
| - name: Publish TS.NET.Testbench.UI | |
| working-directory: build-scripts | |
| run: | | |
| if [ "$RUNNER_OS" == "Linux" ]; then | |
| dotnet publish ../source/TS.NET.Testbench.UI/TS.NET.Testbench.UI.csproj -r linux-x64 -c Release --self-contained /p:PublishSingleFile=true /p:PublishTrimmed=true /p:IncludeNativeLibrariesForSelfExtract=true --output ../builds/TS.NET.Testbench.UI/linux-x64 | |
| elif [ "$RUNNER_OS" == "Windows" ]; then | |
| powershell -ExecutionPolicy Bypass -File "TS.NET.Testbench.UI (win-x64).ps1" | |
| elif [ "$RUNNER_OS" == "macOS" ]; then | |
| dotnet publish ../source/TS.NET.Testbench.UI/TS.NET.Testbench.UI.csproj -r osx-x64 -c Release --self-contained /p:PublishSingleFile=true /p:PublishTrimmed=true /p:IncludeNativeLibrariesForSelfExtract=true --output ../builds/TS.NET.Testbench.UI/macos-x64 | |
| dotnet publish ../source/TS.NET.Testbench.UI/TS.NET.Testbench.UI.csproj -r osx-arm64 -c Release --self-contained /p:PublishSingleFile=true /p:PublishTrimmed=true /p:IncludeNativeLibrariesForSelfExtract=true --output ../builds/TS.NET.Testbench.UI/macos-arm64 | |
| else | |
| echo "$RUNNER_OS not supported" | |
| exit 1 | |
| fi | |
| shell: bash | |
| - name: Upload TS.NET.Testbench.UI win-x64 build | |
| if: runner.os == 'Windows' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: TS.NET.Testbench.UI-win-x64 | |
| path: builds/TS.NET.Testbench.UI/win-x64/* | |
| - name: Upload TS.NET.Testbench.UI linux-x64 build | |
| if: runner.os == 'Linux' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: TS.NET.Testbench.UI-linux-x64 | |
| path: builds/TS.NET.Testbench.UI/linux-x64/* | |
| - name: Upload TS.NET.Testbench.UI macos-x64 build | |
| if: runner.os == 'macOS' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: TS.NET.Testbench.UI-macos-x64 | |
| path: builds/TS.NET.Testbench.UI/macos-x64/* | |
| - name: Upload TS.NET.Testbench.UI macos-arm64 build | |
| if: runner.os == 'macOS' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: TS.NET.Testbench.UI-macos-arm64 | |
| path: builds/TS.NET.Testbench.UI/macos-arm64/* |