Skip to content

Commit 168ae78

Browse files
committed
Define branch alias
1 parent 541a794 commit 168ae78

2 files changed

Lines changed: 13 additions & 10 deletions

File tree

.github/workflows/CI.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: "CI"
22

33
on:
44
push:
5-
branches: [main]
5+
branches: [*]
66
pull_request:
7-
branches: [main]
7+
branches: [*]
88
workflow_dispatch:
99

1010
permissions:
@@ -46,24 +46,24 @@ jobs:
4646
steps:
4747
- name: "Git: checkout"
4848
uses: actions/checkout@v4
49-
49+
5050
- name: "PHP: setup ${{ env.PHP_STABLE_VERSION }}"
5151
uses: shivammathur/setup-php@v2
5252
with:
5353
php-version: ${{ env.PHP_STABLE_VERSION }}
5454
coverage: pcov
5555
tools: phpstan
56-
56+
5757
- name: "Composer: install"
5858
run: composer install --prefer-dist --no-interaction --no-progress
59-
59+
6060
- name: "PHPStan: version"
6161
run: phpstan --version
62-
62+
6363
- name: "PHPStan: analyze"
6464
run: phpstan analyze --memory-limit=-1
6565

66-
unit-tests:
66+
tests:
6767
name: "Unit Tests (PHP ${{ matrix.php-version }})"
6868
runs-on: ubuntu-latest
6969
strategy:
@@ -92,16 +92,16 @@ jobs:
9292
- name: "PHPUnit: version"
9393
run: phpunit --version
9494

95-
- name: "PHPUnit: unit tests"
95+
- name: "PHPUnit: tests"
9696
if: matrix.php-version != env.PHP_STABLE_VERSION
9797
run: phpunit
9898

99-
- name: "PHPUnit: all tests + coverage"
99+
- name: "PHPUnit: tests + coverage"
100100
if: matrix.php-version == env.PHP_STABLE_VERSION
101101
run: phpunit --coverage-clover ./coverage.xml
102102

103103
- name: "Codecov: upload coverage"
104-
if: matrix.php-version == env.PHP_STABLE_VERSION
104+
if: matrix.php-version == env.PHP_STABLE_VERSION
105105
uses: codecov/codecov-action@v5
106106
with:
107107
files: ./coverage.xml

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@
5353
"sort-packages": true
5454
},
5555
"extra": {
56+
"branch-alias": {
57+
"dev-main": "0.x-dev"
58+
},
5659
"thanks": {
5760
"name": "playwright-php/playwright",
5861
"url": "https://github.com/playwright-php/playwright"

0 commit comments

Comments
 (0)