diff --git a/.github/workflows/bc.yml b/.github/workflows/bc.yaml similarity index 93% rename from .github/workflows/bc.yml rename to .github/workflows/bc.yaml index 26296d5b..d07fc8b7 100644 --- a/.github/workflows/bc.yml +++ b/.github/workflows/bc.yaml @@ -1,5 +1,8 @@ -on: [push, pull_request] +--- name: Roave + +on: workflow_call + jobs: roave_bc_check: name: BC Check diff --git a/.github/workflows/static.yml b/.github/workflows/linter.yaml similarity index 98% rename from .github/workflows/static.yml rename to .github/workflows/linter.yaml index 83c47ba3..6e3d92fe 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/linter.yaml @@ -1,6 +1,8 @@ -on: [push, pull_request] +--- name: Static analysis +on: workflow_call + jobs: phpstan: name: PHPStan diff --git a/.github/workflows/pull-request.yaml b/.github/workflows/pull-request.yaml new file mode 100644 index 00000000..3bbd5d5e --- /dev/null +++ b/.github/workflows/pull-request.yaml @@ -0,0 +1,11 @@ +--- +name: Pull-Request + +on: pull_request + +jobs: + bc: + uses: ./.github/workflows/bc.yaml + + tests: + uses: ./.github/workflows/tests.yaml diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml new file mode 100644 index 00000000..d924b350 --- /dev/null +++ b/.github/workflows/push.yaml @@ -0,0 +1,14 @@ +--- +name: Push + +on: + push: + branches: + - master + +jobs: + bc: + uses: ./.github/workflows/bc.yaml + + tests: + uses: ./.github/workflows/tests.yaml diff --git a/.github/workflows/ci.yml b/.github/workflows/tests.yaml similarity index 99% rename from .github/workflows/ci.yml rename to .github/workflows/tests.yaml index 525ddc52..f2334a2e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/tests.yaml @@ -1,5 +1,7 @@ +--- name: Tests -on: [push, pull_request] + +on: workflow_call jobs: