From c1124f20257711439d1245abcb4d6abdf0926535 Mon Sep 17 00:00:00 2001 From: Jennyf19 Date: Wed, 26 Jul 2023 09:57:49 -0700 Subject: [PATCH] add yml for github action and PR tests --- .github/workflows/dotnetcore.yml | 36 ++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/dotnetcore.yml diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml new file mode 100644 index 0000000000..9e0dd8636e --- /dev/null +++ b/.github/workflows/dotnetcore.yml @@ -0,0 +1,36 @@ +name: .NET Core + +on: + push: + branches: + - dev7x + pull_request: + types: + - opened + - synchronize + - reopened + - ready_for_review + branches: + - dev7x + +env: + TargetNet8: True + +jobs: + build: + runs-on: windows-latest + continue-on-error: true + name: Wilson GitHub Action Test + steps: + - name: Checkout repository + uses: actions/checkout@v2.3.4 + - name: Setup .NET 8.0.x + uses: actions/setup-dotnet@v2.1.0 + with: + dotnet-version: 8.0.100-preview.6.23330.14 + + # Build and test + - name: Restore packages + run: dotnet restore Wilson.sln + - name: Run the tests + run: dotnet test Wilson.sln