From 77488ed879d5114114221dd420059cbe741fcba3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20Moln=C3=A1r?= Date: Thu, 23 Mar 2023 16:30:41 +0100 Subject: [PATCH] Create dotnet-test.yml --- .github/workflows/dotnet-test.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/dotnet-test.yml diff --git a/.github/workflows/dotnet-test.yml b/.github/workflows/dotnet-test.yml new file mode 100644 index 0000000..9bf3519 --- /dev/null +++ b/.github/workflows/dotnet-test.yml @@ -0,0 +1,30 @@ +# This workflow will build a .NET project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net + +name: .NET + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + Build-Tests-Publish: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, windows-latest, macOS-latest, windows-2016, macOS-10.14] + steps: + - uses: actions/checkout@v3 + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 7.0.x + - name: Restore dependencies + run: dotnet restore + - name: Build + run: dotnet build --no-restore + - name: Test + run: dotnet test --no-build --verbosity normal