Skip to content

Commit 04c89a0

Browse files
committed
GH Actions: various other small tweaks
* Ensure all steps have a name. * Update a few links in inline comments as the old URLs are no longer valid. * Fix a non-LF line ending. * Small indentation fix. * Be more specific about what Composer can ignore when installing. Ref: https://blog.packagist.com/composer-2-2/#-ignore-platform-req-improvements
1 parent 0f39455 commit 04c89a0

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

.github/workflows/label-new-prs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: srvaroa/labeler@master
16-
env:
17-
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
15+
- uses: srvaroa/labeler@master
16+
env:
17+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/phpstan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535

3636
# Install dependencies and handle caching in one go.
3737
# Dependencies need to be installed to make sure the PHPUnit classes are recognized.
38-
# @link https://github.com/marketplace/actions/install-composer-dependencies
38+
# @link https://github.com/marketplace/actions/install-php-dependencies-with-composer
3939
- name: Install Composer dependencies
4040
uses: "ramsey/composer-install@v2"
4141
with:

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ jobs:
113113
tools: cs2pr
114114

115115
# Install dependencies and handle caching in one go.
116-
# @link https://github.com/marketplace/actions/install-composer-dependencies
116+
# @link https://github.com/marketplace/actions/install-php-dependencies-with-composer
117117
- name: Install Composer dependencies - normal
118118
if: ${{ matrix.php != '8.1' }}
119119
uses: "ramsey/composer-install@v2"
@@ -126,7 +126,7 @@ jobs:
126126
if: ${{ matrix.php == '8.1' || matrix.php == '8.2' }}
127127
uses: "ramsey/composer-install@v2"
128128
with:
129-
composer-options: --ignore-platform-reqs
129+
composer-options: --ignore-platform-req=php+
130130
custom-cache-suffix: $(date -u "+%Y-%m")
131131

132132
# Note: The code style check is run multiple times against every PHP version

.github/workflows/validate.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ jobs:
3838

3939
# Show XML violations inline in the file diff.
4040
# @link https://github.com/marketplace/actions/xmllint-problem-matcher
41-
- uses: korelstar/xmllint-problem-matcher@v1
41+
- name: Enable showing XML issues inline
42+
uses: korelstar/xmllint-problem-matcher@v1
4243

4344
# Validate the XML ruleset files.
4445
# @link http://xmlsoft.org/xmllint.html

0 commit comments

Comments
 (0)