From d913dd43e08268c581d002a3e7a01dbbf2831e37 Mon Sep 17 00:00:00 2001 From: Matthias Friedrich <1573457+matzefriedrich@users.noreply.github.com> Date: Mon, 15 Apr 2024 16:54:13 +0200 Subject: [PATCH] Create dotnet.yml (#14) --- .github/workflows/dotnet.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/dotnet.yml diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml new file mode 100644 index 0000000..99e6569 --- /dev/null +++ b/.github/workflows/dotnet.yml @@ -0,0 +1,26 @@ +name: .NET + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 8.0.x + + - name: Restore dependencies + run: dotnet restore src/System.CommandLine.Extensions.sln + + - name: Build + run: dotnet build src/System.CommandLine.Extensions.sln --no-restore