refactor(tests): Replace BeOfType assertions with `GetType().Name.S…
#6
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: Template - build and test | |
| on: | |
| push: | |
| branches: [ main, development ] | |
| pull_request: | |
| branches: [ development ] | |
| # Add manual workflow dispatch trigger | |
| workflow_dispatch: | |
| inputs: | |
| reason: | |
| description: 'Reason for running the workflow' | |
| required: false | |
| default: 'Manual execution' | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v2 | |
| with: | |
| submodules: recursive # Checkout submodules recursively | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v3.2.0 | |
| with: | |
| dotnet-version: 9.0 | |
| - name: Restore dependencies | |
| run: dotnet restore | |
| - name: Build | |
| run: dotnet build --no-restore --configuration Release | |
| - name: Test | |
| run: dotnet test |