From 818d3c4fd7d81822235b353635e443231a42c66c Mon Sep 17 00:00:00 2001 From: andy Date: Sat, 7 Dec 2024 00:35:52 +0800 Subject: [PATCH] Create ci Add the GitHub action to run the test instead of Appveyor. --- .github/workflows/ci | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/ci diff --git a/.github/workflows/ci b/.github/workflows/ci new file mode 100644 index 000000000..b9a85c3c9 --- /dev/null +++ b/.github/workflows/ci @@ -0,0 +1,22 @@ +name: .NET Core + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + name: Build and Test + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + - name: Install dependencies + run: dotnet restore + - name: Build with .NET + run: dotnet build --no-restore --configuration Release + - name: Unit Tests + run: dotnet test --no-build --no-restore --configuration Release