Skip to content

Commit

Permalink
ci: define concurrency and job dependencies for our GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ramsey committed Jan 2, 2022
1 parent a821eaa commit cd29fbb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/continuous-integration.yml
Expand Up @@ -12,6 +12,12 @@ on:
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"

Expand Down Expand Up @@ -66,6 +72,7 @@ jobs:

security-analysis:
name: "Security analysis"
needs: ["coding-standards", "static-analysis"]
runs-on: "ubuntu-latest"
steps:
- name: "Checkout repository"
Expand All @@ -91,6 +98,7 @@ jobs:

code-coverage:
name: "Code coverage"
needs: ["coding-standards", "static-analysis"]
runs-on: "ubuntu-latest"
steps:
- name: "Checkout repository"
Expand All @@ -115,6 +123,7 @@ jobs:

unit-tests:
name: "Unit tests"
needs: ["code-coverage", "security-analysis"]
runs-on: ${{ matrix.operating-system }}

strategy:
Expand Down

0 comments on commit cd29fbb

Please sign in to comment.