Merge pull request #12 from EvotecIT/Improve #40
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: Test .NET | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths-ignore: | |
| - '*.md' | |
| - 'Docs/**' | |
| - 'Examples/**' | |
| - '.gitignore' | |
| pull_request: | |
| branches: | |
| - master | |
| env: | |
| DOTNET_VERSIONS: | | |
| 8.0.x | |
| 9.0.x | |
| BUILD_CONFIGURATION: 'Release' | |
| jobs: | |
| test-windows: | |
| name: 'Windows' | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: ${{ env.DOTNET_VERSIONS }} | |
| - name: Restore dependencies | |
| run: dotnet restore LocalSecurityEditor.sln | |
| - name: Build solution | |
| run: dotnet build LocalSecurityEditor.sln --configuration ${{ env.BUILD_CONFIGURATION }} --no-restore | |
| - name: Test net472 | |
| run: dotnet test LocalSecurityEditor.sln --configuration ${{ env.BUILD_CONFIGURATION }} --no-build --framework net472 | |
| - name: Test net8.0 | |
| run: dotnet test LocalSecurityEditor.sln --configuration ${{ env.BUILD_CONFIGURATION }} --no-build --framework net8.0 |