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 ]
branches: [ master, '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 ]
branches: [ master, '1.x' ]
pull_request:
branches: [ master ]
branches: [ master, '1.x' ]
paths-ignore:
- README.md

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<p align="center"><a href="https://github.com/durable-workflow/workflow/actions/workflows/php.yml"><img src="https://img.shields.io/github/actions/workflow/status/durable-workflow/workflow/php.yml" alt="GitHub Workflow Status"></a> <a href="https://codecov.io/gh/durable-workflow/workflow"><img alt="Codecov" src="https://img.shields.io/codecov/c/github/durable-workflow/workflow"></a> <a href="https://packagist.org/packages/durable-workflow/workflow/stats"><img alt="Packagist Downloads (custom server)" src="https://img.shields.io/packagist/dt/durable-workflow/workflow"></a>
<a href="https://durable-workflow.com/docs/installation"><img src="https://img.shields.io/badge/docs-read%20now-brightgreen" alt="Docs"></a> <a href="https://github.com/durable-workflow/workflow/blob/master/LICENSE"><img alt="Packagist License" src="https://img.shields.io/packagist/l/durable-workflow/workflow?color=bright-green"></a></p>
<p align="center"><a href="https://github.com/durable-workflow/workflow/actions/workflows/php.yml?query=branch%3A1.x"><img src="https://github.com/durable-workflow/workflow/actions/workflows/php.yml/badge.svg?branch=1.x" alt="GitHub Workflow Status"></a> <a href="https://codecov.io/gh/durable-workflow/workflow/branch/1.x"><img alt="Codecov" src="https://codecov.io/gh/durable-workflow/workflow/branch/1.x/graph/badge.svg"></a> <a href="https://packagist.org/packages/durable-workflow/workflow/stats"><img alt="Packagist Downloads (custom server)" src="https://img.shields.io/packagist/dt/durable-workflow/workflow"></a>
<a href="https://durable-workflow.com/docs/installation"><img src="https://img.shields.io/badge/docs-read%20now-brightgreen" alt="Docs"></a> <a href="https://github.com/durable-workflow/workflow/blob/1.x/LICENSE"><img alt="Packagist License" src="https://img.shields.io/packagist/l/durable-workflow/workflow?color=bright-green"></a></p>

Durable Workflow (formerly Laravel Workflow) is a package for the Laravel web framework that provides tools for defining and managing workflows and activities. A workflow is a series of interconnected activities that are executed in a specific order to achieve a desired result. Activities are individual tasks or pieces of logic that are executed as part of a workflow.

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 \]\R paths:\R' .
"/^ workflow_dispatch:\\R push:\\R branches: \\[ master, '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 \]$/m', $events);
self::assertMatchesRegularExpression("/^ push:\\R branches: \\[ master, '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 \]\R paths-ignore:\R - README\.md\R\z/m',
"/^ pull_request:\\R branches: \\[ master, '1\\.x' \\]\\R paths-ignore:\\R - README\\.md\\R\\z/m",
$events
);
}
Expand Down
Loading