From 1a6f235ba3faf1cd9ba18daf5b54d8dc9d3bc7d0 Mon Sep 17 00:00:00 2001 From: Ben Ramsey Date: Sat, 15 Jan 2022 17:54:44 -0600 Subject: [PATCH] ci: set up dependencies in the workflow --- .github/workflows/continuous-integration.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) 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: