@@ -3,6 +3,10 @@ name: Integrate
33# Run this workflow every time a new commit pushed to your repository
44on :
55 push :
6+ branches :
7+ - master
8+ tags :
9+ - ' *'
610 paths-ignore :
711 - ' **/*.md'
812 - ' public/dist/*.js'
2024# Declare default permissions as read only.
2125permissions : read-all
2226
23- jobs :
24- kill_previous :
25- name : 0️⃣ Kill previous runs
26- runs-on : ubuntu-latest
27- # We want to run on external PRs, but not on our own internal PRs as they'll be run by the push to the branch.
28- if : (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository)
29- steps :
30- - name : Harden Runner
31- uses : step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
32- with :
33- egress-policy : audit
34-
35- - name : Cancel Previous Runs
36- uses : styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # 0.12.1
37- with :
38- access_token : ${{ github.token }}
27+ concurrency :
28+ group : ${{ github.workflow }}-${{ github.ref }}
29+ cancel-in-progress : ${{ !contains(github.ref, 'master') && !startsWith(github.ref, 'refs/tags/') }} # Only cancel previous runs on non-master/non-tag branches.
3930
31+ jobs :
4032 php_syntax_errors :
41- name : 1️⃣ PHP 8.3 - Syntax errors
33+ name : 0️⃣ PHP 8.4 - Syntax errors
4234 runs-on : ubuntu-latest
43- needs :
44- - kill_previous
4535 steps :
4636 - name : Harden Runner
4737 uses : step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
5141 - name : Setup PHP Action
5242 uses : shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # 2.36.0
5343 with :
54- php-version : 8.3
44+ php-version : 8.4
5545
5646 - name : Checkout code
5747 uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
6252 - name : Check source code for syntax errors
6353 run : vendor/bin/parallel-lint --exclude .git --exclude vendor .
6454
55+ check_js :
56+ name : 0️⃣ JS front-end
57+ uses : ./.github/workflows/js_check.yml
58+
6559 code_style_errors :
66- name : 2️⃣ PHP 8.3 - Code Style errors
60+ name : 1️⃣ PHP 8.4 - Code Style errors
6761 runs-on : ubuntu-latest
6862 needs :
6963 - php_syntax_errors
7670 - name : Set up PHP
7771 uses : shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # 2.36.0
7872 with :
79- php-version : 8.3
73+ php-version : 8.4
8074
8175 - name : Checkout code
8276 uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
@@ -85,16 +79,10 @@ jobs:
8579 uses : ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520 # 3.1.1
8680
8781 - name : Check source code for code style errors
88- run : PHP_CS_FIXER_IGNORE_ENV=1 vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php --verbose --diff --dry-run
89-
90- check_js :
91- name : 2️⃣ JS front-end
92- uses : ./.github/workflows/js_check.yml
93- needs :
94- - php_syntax_errors
82+ run : vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php --verbose --diff --dry-run
9583
9684 phpstan :
97- name : 2️⃣ PHP 8.3 - PHPStan
85+ name : 1️⃣ PHP 8.4 - PHPStan
9886 runs-on : ubuntu-latest
9987 needs :
10088 - php_syntax_errors
11098 - name : Setup PHP
11199 uses : shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # 2.36.0
112100 with :
113- php-version : 8.3
101+ php-version : 8.4
114102 coverage : none
115103
116104 - name : Install Composer dependencies
@@ -120,7 +108,7 @@ jobs:
120108 run : vendor/bin/phpstan analyze
121109
122110 license :
123- name : 2️⃣ PHP 8.3 - License Check
111+ name : 1️⃣ PHP 8.4 - License Check
124112 runs-on : ubuntu-latest
125113 needs :
126114 - php_syntax_errors
@@ -136,7 +124,7 @@ jobs:
136124 - name : Setup PHP
137125 uses : shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # 2.36.0
138126 with :
139- php-version : 8.3
127+ php-version : 8.4
140128 coverage : none
141129
142130 - name : Install Composer dependencies
@@ -147,21 +135,21 @@ jobs:
147135 run : vendor/bin/composer-license-checker check -b GPL-2.0-or-later -b GPL-2.0-only -b GPL-3.0-only -b GPL-3.0-or-later -b AGPL-1.0-only -b AGPL-1.0-or-later -b AGPL-3.0-only -b AGPL-3.0-or-later -b LGPL-2.0-only -b LGPL-2.0-or-later -b LGPL-2.1-only -b LGPL-2.1-or-later -b LGPL-3.0-only -b LGPL-3.0-or-later --no-dev
148136
149137 tests :
150- name : 2️⃣ PHP tests
138+ name : 1️⃣ PHP tests
151139 needs :
152140 - php_syntax_errors
153141 uses : ./.github/workflows/php_tests.yml
154142 secrets :
155143 CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
156144
157145 dist :
158- name : 3️⃣ PHP dist
146+ name : 2️⃣ PHP dist
159147 needs :
160148 - code_style_errors
161149 uses : ./.github/workflows/php_dist.yml
162150
163151 createArtifact :
164- name : 4️⃣ Build Artifact
152+ name : 3️⃣ Build Artifact
165153 if : github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')
166154 needs :
167155 - phpstan
@@ -188,7 +176,7 @@ jobs:
188176 - name : Setup PHP
189177 uses : shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # 2.36.0
190178 with :
191- php-version : 8.3
179+ php-version : 8.4
192180 extensions : ${{ env.extensions }}
193181 coverage : none
194182
@@ -241,7 +229,7 @@ jobs:
241229
242230
243231 release :
244- name : 5️⃣ Release
232+ name : 4️⃣ Release
245233 if : startsWith(github.ref, 'refs/tags/')
246234 needs :
247235 - createArtifact
0 commit comments