From 2a198191adb66a59d4c948091f46ceae7744c4ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=82=A0=E9=9D=99=E8=90=9D=E8=8E=89?= Date: Thu, 11 Mar 2021 13:00:08 +0800 Subject: [PATCH] Add Action --- .github/workflows/BuildPackages.yml | 25 +++++++++++++++++++++++++ .gitignore | 3 ++- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/BuildPackages.yml diff --git a/.github/workflows/BuildPackages.yml b/.github/workflows/BuildPackages.yml new file mode 100644 index 0000000..bce37bd --- /dev/null +++ b/.github/workflows/BuildPackages.yml @@ -0,0 +1,25 @@ +name: BuildPackages + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Setup .NET + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 5.0.x + - name: Restore dependencies + run: dotnet restore + - name: Build + run: dotnet build --no-restore + - name: Test + run: dotnet test --no-build --verbosity normal diff --git a/.gitignore b/.gitignore index 02f0651..d36957e 100644 --- a/.gitignore +++ b/.gitignore @@ -339,4 +339,5 @@ ASALocalRun/ # BeatPulse healthcheck temp database healthchecksdb DevIcon.* -Test \ No newline at end of file +Test +nuget.config \ No newline at end of file