From 82e02e19c0ff45a03f72fdf21f2cbe3a02e721ad Mon Sep 17 00:00:00 2001 From: Ender <37611092+zengande@users.noreply.github.com> Date: Fri, 23 Feb 2024 14:31:42 +0800 Subject: [PATCH 1/2] Create dotnet.yml --- .github/workflows/dotnet.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 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..4ce6cdd --- /dev/null +++ b/.github/workflows/dotnet.yml @@ -0,0 +1,30 @@ +# This workflow will build a .NET project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net + +name: .NET + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 8.0.x + - name: Restore dependencies + run: dotnet restore + - name: Build + run: dotnet build --no-restore + - name: Test + run: dotnet test --no-build --verbosity normal + - name: Pack + run: dotnet pack -c Release --no-biuld From ec9049183d5c25879e4c4b3e0ba27c083d54d490 Mon Sep 17 00:00:00 2001 From: Ender <37611092+zengande@users.noreply.github.com> Date: Fri, 23 Feb 2024 14:33:51 +0800 Subject: [PATCH 2/2] Update dotnet.yml --- .github/workflows/dotnet.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 4ce6cdd..5b28298 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -27,4 +27,4 @@ jobs: - name: Test run: dotnet test --no-build --verbosity normal - name: Pack - run: dotnet pack -c Release --no-biuld + run: dotnet pack -c Release