diff --git a/.github/workflows/dotnet - test.yml b/.github/workflows/dotnet - test.yml new file mode 100644 index 00000000..b6101dda --- /dev/null +++ b/.github/workflows/dotnet - test.yml @@ -0,0 +1,50 @@ +name: .NET + +on: + push: + branches: [ develop ] + pull_request: + branches: [ develop ] + +jobs: + build-windows: + + runs-on: windows-latest + + steps: + - uses: actions/checkout@v2 + - name: Setup .NET 6.0 + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 6.0.x + - name: Restore dependencies + working-directory: ./src + run: dotnet restore + - name: Build + working-directory: ./src + run: dotnet build --configuration Release --no-restore /p:NoWarn=1591 + - name: Test + working-directory: ./src + run: dotnet test --configuration Release --no-restore --no-build --verbosity normal + + build-linux: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Setup .NET 6.0 + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 6.0.x + - name: Restore dependencies + working-directory: ./src + run: dotnet restore + - name: Build + working-directory: ./src + run: dotnet build --configuration Release --no-restore /p:NoWarn=1591 + - name: Test + working-directory: ./src + run: dotnet test --configuration Release --no-restore --no-build --verbosity normal + +