From 0c1b7a2e0eaffbe5e72f75cb9d27f9f18918bbbe Mon Sep 17 00:00:00 2001 From: Vijayshinva Karnure Date: Sun, 15 Nov 2020 11:50:38 +0530 Subject: [PATCH] Create dotnet-core.yml --- .github/workflows/dotnet-core.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/dotnet-core.yml diff --git a/.github/workflows/dotnet-core.yml b/.github/workflows/dotnet-core.yml new file mode 100644 index 0000000..236fe6f --- /dev/null +++ b/.github/workflows/dotnet-core.yml @@ -0,0 +1,27 @@ +name: .NET Core + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Setup .NET Core + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 3.1.301 + - name: Install dependencies + run: dotnet restore + - name: Build + run: dotnet build --configuration Release --no-restore + - name: Test + run: dotnet test --no-restore --verbosity normal + - name: Pack + run: dotnet pack --configuration Release