Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/copilot-setup-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: "Copilot Setup Steps"
on:
workflow_dispatch:
push:
branches: [ master, '1.x' ]
branches: ['1.x']
paths:
- .github/workflows/copilot-setup-steps.yml
pull_request:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: build

on:
push:
branches: [ master, '1.x' ]
branches: ['1.x']
pull_request:
branches: [ master, '1.x' ]
branches: ['1.x']
paths-ignore:
- README.md

Expand Down
6 changes: 3 additions & 3 deletions tests/Unit/CiWorkflowPolicyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function testCopilotSetupUsesTheSupportedBranchAndToolchainContract(): vo

self::assertIsString($events);
self::assertMatchesRegularExpression(
"/^ workflow_dispatch:\\R push:\\R branches: \\[ master, '1\\.x' \\]\\R paths:\\R" .
"/^ workflow_dispatch:\\R push:\\R branches: \\['1\\.x'\\]\\R paths:\\R" .
' - \.github\/workflows\/copilot-setup-steps\.yml$/m',
$events
);
Expand Down Expand Up @@ -119,14 +119,14 @@ public function testReadmeOnlyPullRequestsAreIgnoredWithoutWeakeningPushQualific
$events = strstr(self::workflow(), "\njobs:", true);

self::assertIsString($events);
self::assertMatchesRegularExpression("/^ push:\\R branches: \\[ master, '1\\.x' \\]$/m", $events);
self::assertMatchesRegularExpression("/^ push:\\R branches: \\['1\\.x'\\]$/m", $events);

$push = strstr($events, ' pull_request:', true);

self::assertIsString($push);
self::assertStringNotContainsString('paths-ignore:', $push);
self::assertMatchesRegularExpression(
"/^ pull_request:\\R branches: \\[ master, '1\\.x' \\]\\R paths-ignore:\\R - README\\.md\\R\\z/m",
"/^ pull_request:\\R branches: \\['1\\.x'\\]\\R paths-ignore:\\R - README\\.md\\R\\z/m",
$events
);
}
Expand Down
Loading