diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 00000000..c6826ec8 --- /dev/null +++ b/.github/workflows/pr.yml @@ -0,0 +1,16 @@ +name: Kook.Net on Pull Request + +on: + pull_request: + branches: [ master, dev ] + +jobs: + build_and_test: + name: Build and Test + strategy: + matrix: + target: [ windows-latest, ubuntu-latest, macOS-latest ] + uses: ./.github/workflows/build-test.yml + with: + target: ${{ matrix.target }} + dotnet-version: 8.0.x diff --git a/.github/workflows/push-or-pr.yml b/.github/workflows/push.yml similarity index 86% rename from .github/workflows/push-or-pr.yml rename to .github/workflows/push.yml index a1d79fcf..b7d6718d 100644 --- a/.github/workflows/push-or-pr.yml +++ b/.github/workflows/push.yml @@ -1,10 +1,8 @@ -name: Kook.Net on Push or Pull Request +name: Kook.Net on Push on: push: branches: [ master, dev ] -# pull_request: -# branches: [ master, dev ] jobs: build_and_test: