Skip to content

Commit 32d9ece

Browse files
localheinzsebastianbergmann
authored andcommitted
Fix: Consistently use shivammathur/setup-php
1 parent b19f315 commit 32d9ece

File tree

1 file changed

+19
-7
lines changed

1 file changed

+19
-7
lines changed

.github/workflows/ci.yml

+19-7
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,14 @@ jobs:
1616
- name: Checkout
1717
uses: actions/checkout@v2
1818

19+
- name: Install PHP
20+
uses: shivammathur/setup-php@v2
21+
with:
22+
php-version: 7.4
23+
coverage: none
24+
1925
- name: Run friendsofphp/php-cs-fixer
20-
run: php7.4 ./tools/php-cs-fixer fix --diff-format=udiff --dry-run --show-progress=dots --using-cache=no --verbose
26+
run: ./tools/php-cs-fixer fix --diff-format=udiff --dry-run --show-progress=dots --using-cache=no --verbose
2127

2228
type-checker:
2329
name: Type Checker
@@ -28,14 +34,20 @@ jobs:
2834
- name: Checkout
2935
uses: actions/checkout@v2
3036

37+
- name: Install PHP
38+
uses: shivammathur/setup-php@v2
39+
with:
40+
php-version: 7.4
41+
coverage: none
42+
3143
- name: Update dependencies with composer
32-
run: php7.4 ./tools/composer update --no-interaction --no-ansi --no-progress --no-suggest
44+
run: ./tools/composer update --no-interaction --no-ansi --no-progress --no-suggest
3345

3446
- name: Run vimeo/psalm on public API
35-
run: php7.4 ./tools/psalm --config=.psalm/static-analysis.xml --no-progress --show-info=false
47+
run: ./tools/psalm --config=.psalm/static-analysis.xml --no-progress --show-info=false
3648

3749
- name: Run vimeo/psalm on internal code
38-
run: php7.4 ./tools/psalm --config=.psalm/config.xml --no-progress --shepherd --show-info=false --stats
50+
run: ./tools/psalm --config=.psalm/config.xml --no-progress --shepherd --show-info=false --stats
3951

4052
backward-compatibility:
4153
name: Backward Compatibility
@@ -51,15 +63,15 @@ jobs:
5163
- name: Fetch tags
5264
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
5365

54-
- name: "Install PHP with extensions"
66+
- name: Install PHP with extensions
5567
uses: shivammathur/setup-php@v2
5668
with:
5769
php-version: 7.4
5870
coverage: none
5971
extensions: intl
6072

6173
- name: Run roave/backward-compatibility-check
62-
run: php ./tools/roave-backward-compatibility-check --from=8.5.0
74+
run: ./tools/roave-backward-compatibility-check --from=8.5.0
6375

6476
lint-xml-configuration:
6577
name: Lint XML Configuration
@@ -98,7 +110,7 @@ jobs:
98110
- name: Checkout
99111
uses: actions/checkout@v2
100112

101-
- name: "Install PHP with extensions"
113+
- name: Install PHP with extensions
102114
uses: shivammathur/setup-php@v2
103115
with:
104116
php-version: ${{ matrix.php-version }}

0 commit comments

Comments
 (0)