diff --git a/.github/workflows/pull-request.yaml b/.github/workflows/pull-request.yaml new file mode 100644 index 0000000..8af9858 --- /dev/null +++ b/.github/workflows/pull-request.yaml @@ -0,0 +1,16 @@ +name: Pull request + +on: + pull_request: + branches: + - main +jobs: + test: + uses: ./.github/workflows/tests.yaml + with: + directory: ${{ matrix.directory }} + strategy: + matrix: + directory: + - matomo-api + - Library-Notification-Service diff --git a/.github/workflows/push-master.yaml b/.github/workflows/push-main.yaml similarity index 95% rename from .github/workflows/push-master.yaml rename to .github/workflows/push-main.yaml index b2fcdda..304943f 100644 --- a/.github/workflows/push-master.yaml +++ b/.github/workflows/push-main.yaml @@ -1,4 +1,4 @@ -name: Test +name: Push main on: push: @@ -16,6 +16,7 @@ jobs: - matomo-api - Library-Notification-Service release: + needs: test uses: ./.github/workflows/release.yaml with: directory: ${{ matrix.directory }}