diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index e445335..2236a33 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -2,7 +2,21 @@ name: "build" -on: ["pull_request", "push"] +on: + push: + branches: + - "*.x" + tags: + - "*" + pull_request: + branches: + - "*.x" + +# Cancels all previous workflow runs for the same branch that have not yet completed. +concurrency: + # The concurrency group contains the workflow name and the branch name. + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true env: COMPOSER_ROOT_VERSION: "1.99.99" @@ -54,6 +68,7 @@ jobs: benchmark: name: "Benchmark" + needs: ["coding-standards", "static-analysis"] runs-on: "ubuntu-latest" strategy: @@ -88,6 +103,7 @@ jobs: code-coverage: name: "Code coverage" + needs: ["coding-standards", "static-analysis"] runs-on: "ubuntu-latest" steps: - name: "Checkout repository" @@ -119,6 +135,7 @@ jobs: unit-tests: name: "Unit Tests" + needs: ["code-coverage"] runs-on: ${{ matrix.operating-system }} strategy: