From 7fe1d833de421e09a5ce4cacc2120b9fa439d210 Mon Sep 17 00:00:00 2001 From: MJedr Date: Mon, 2 Oct 2023 15:38:14 +0200 Subject: [PATCH] update workflow names --- .github/workflows/pull-request.yaml | 16 ++++++++++++++++ .../{push-master.yaml => push-main.yaml} | 3 ++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/pull-request.yaml rename .github/workflows/{push-master.yaml => push-main.yaml} (95%) 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 }}