Skip to content

Commit 26ee9c4

Browse files
committed
CI: Adjust the build workflow
1 parent 8cee80a commit 26ee9c4

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,19 @@ name: "CI"
44

55
on:
66
pull_request:
7+
branches:
8+
- "master"
79
push:
810
branches:
911
- "master"
12+
tags:
13+
- "*"
14+
15+
# Cancels all previous workflow runs for the same branch that have not yet completed.
16+
concurrency:
17+
# The concurrency group contains the workflow name and the branch name.
18+
group: ${{ github.workflow }}-${{ github.ref }}
19+
cancel-in-progress: true
1020

1121
env:
1222
COMPOSER_ROOT_VERSION: "1.99.99"
@@ -15,9 +25,10 @@ jobs:
1525

1626
lint:
1727
name: "Lint"
28+
needs: ["coding-standards", "coverage"]
1829
runs-on: "ubuntu-latest"
1930
strategy:
20-
fail-fast: false
31+
fail-fast: true
2132
matrix:
2233
php-version: [ '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
2334
steps:
@@ -42,7 +53,7 @@ jobs:
4253
php-version: "latest"
4354
coverage: "none"
4455
ini-values: "memory_limit=-1"
45-
tools: "composer:v2"
56+
tools: "composer"
4657
- uses: "ramsey/composer-install@v3"
4758
- name: "Check coding standards"
4859
run: "./vendor/bin/phpcs src --standard=psr2 -sp --colors"
@@ -68,9 +79,10 @@ jobs:
6879

6980
unit-tests:
7081
name: "Unit Tests"
82+
needs: ["lint"]
7183
runs-on: "ubuntu-latest"
7284
strategy:
73-
fail-fast: false
85+
fail-fast: true
7486
matrix:
7587
php-version: [ '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
7688
steps:

0 commit comments

Comments
 (0)