diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 77ea103..45bfe62 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: + - "main" + tags: + - "*" + pull_request: + branches: + - "main" + +# 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" @@ -59,6 +73,7 @@ jobs: unit-tests: name: "Unit Tests" + needs: ["coding-standards", "code-coverage"] runs-on: "ubuntu-latest" strategy: