Skip to content

Commit 60e035c

Browse files
committed
Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2: Fix nightly ref name
2 parents 5c0989d + 636fd34 commit 60e035c

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

.github/matrix.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

33
const BRANCHES = [
4-
['name' => 'master', 'ref' => 'refs/heads/master', 'version' => [8, 6]],
5-
['name' => 'PHP-8.5', 'ref' => 'refs/heads/PHP-8.5', 'version' => [8, 5]],
6-
['name' => 'PHP-8.4', 'ref' => 'refs/heads/PHP-8.4', 'version' => [8, 4]],
7-
['name' => 'PHP-8.3', 'ref' => 'refs/heads/PHP-8.3', 'version' => [8, 3]],
8-
['name' => 'PHP-8.2', 'ref' => 'refs/heads/PHP-8.2', 'version' => [8, 2]],
4+
['name' => 'master', 'ref' => 'master', 'version' => [8, 6]],
5+
['name' => 'PHP-8.5', 'ref' => 'PHP-8.5', 'version' => [8, 5]],
6+
['name' => 'PHP-8.4', 'ref' => 'PHP-8.4', 'version' => [8, 4]],
7+
['name' => 'PHP-8.3', 'ref' => 'PHP-8.3', 'version' => [8, 3]],
8+
['name' => 'PHP-8.2', 'ref' => 'PHP-8.2', 'version' => [8, 2]],
99
];
1010

1111
function get_branch_commit_cache_file_path(): string {
@@ -81,7 +81,7 @@ function select_jobs($repository, $trigger, $nightly, $labels, $php_version, $re
8181
: ['type' => ['asan']];
8282
$jobs['COMMUNITY']['config']['symfony_version'] = version_compare($php_version, '8.4', '>=') ? '8.1' : '7.4';
8383
}
84-
if (($all_jobs && $ref === 'refs/heads/master') || $test_coverage) {
84+
if (($all_jobs && $ref === 'master') || $test_coverage) {
8585
$jobs['COVERAGE'] = true;
8686
}
8787
if ($all_jobs || $test_libmysqlclient) {
@@ -129,7 +129,7 @@ function select_jobs($repository, $trigger, $nightly, $labels, $php_version, $re
129129
if ($all_jobs || $test_opcache_variation) {
130130
$jobs['OPCACHE_VARIATION'] = true;
131131
}
132-
if (($all_jobs && $ref === 'refs/heads/master') || $test_pecl) {
132+
if (($all_jobs && $ref === 'master') || $test_pecl) {
133133
$jobs['PECL'] = true;
134134
}
135135
if ($all_jobs || !$no_jobs || $test_windows) {
@@ -160,9 +160,9 @@ function select_jobs($repository, $trigger, $nightly, $labels, $php_version, $re
160160
if ($discard_cache) {
161161
@unlink(get_branch_commit_cache_file_path());
162162
}
163-
$branch = $argv[3] ?? 'refs/heads/master';
163+
$branch = $argv[3] ?? 'master';
164164
$nightly = $trigger === 'schedule' || $trigger === 'workflow_dispatch';
165-
$branches = $nightly && $branch === 'refs/heads/master'
165+
$branches = $nightly && $branch === 'master'
166166
? get_branches()
167167
: [['name' => 'Suite', 'ref' => $branch, 'version' => get_current_version()]];
168168

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
nightly-
6060
- name: Generate Matrix
6161
id: set-matrix
62-
run: php .github/matrix.php "${{ github.event_name }}" "${{ github.run_attempt }}" "${{ github.ref }}" '${{ toJSON(github.event.pull_request.labels) }}' "${{ github.repository }}"
62+
run: php .github/matrix.php "${{ github.event_name }}" "${{ github.run_attempt }}" "${{ github.event_name == 'pull_request' && github.ref || github.ref_name }}" '${{ toJSON(github.event.pull_request.labels) }}' "${{ github.repository }}"
6363
TEST:
6464
needs: GENERATE_MATRIX
6565
name: ${{ matrix.branch.name }}

0 commit comments

Comments
 (0)