Skip to content

Commit bfa8387

Browse files
committed
avoid php-actions/composer
1 parent d177f4b commit bfa8387

2 files changed

Lines changed: 10 additions & 11 deletions

File tree

.github/workflows/tests.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,17 @@ jobs:
1717
php: ["8.2", "8.3", "8.4"]
1818
runs-on: ubuntu-24.04
1919
steps:
20+
- uses: shivammathur/setup-php@v2
21+
with:
22+
php-version: ${{ matrix.php }}
23+
coverage: pcov
2024
- uses: actions/checkout@v4
2125
- uses: actions/cache@v4
2226
with:
2327
path: vendor
2428
key: vendor-${{ hashFiles('composer.json') }}
25-
- uses: shivammathur/setup-php@v2
26-
with:
27-
php-version: ${{ matrix.php }}
28-
coverage: pcov
29-
- uses: php-actions/composer@v6
30-
- name: Run test suite
31-
run: composer test
29+
- run: composer install
30+
- run: composer test
3231

3332
static:
3433
name: Static Analysis
@@ -39,7 +38,7 @@ jobs:
3938
with:
4039
path: vendor
4140
key: vendor-${{ hashFiles('composer.json') }}
42-
- uses: php-actions/composer@v6
41+
- run: composer install
4342
- run: composer analyse-ci
4443

4544
format:
@@ -51,5 +50,5 @@ jobs:
5150
with:
5251
path: vendor
5352
key: vendor-${{ hashFiles('composer.json') }}
54-
- uses: php-actions/composer@v6
53+
- run: composer install
5554
- run: composer format && git diff --exit-code

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@
3838
"stan": [
3939
"@analyse"
4040
],
41-
"format": "PHP_CS_FIXER_IGNORE_ENV=1 php-cs-fixer fix",
41+
"format": "php-cs-fixer fix",
4242
"analyse-ci": "phpstan analyse --error-format=github",
4343
"analyse": "phpstan analyse --error-format=raw | sed -E 's/:([0-9]+):/:\\1 /'",
44-
"test": "XDEBUG_MODE=coverage phpunit"
44+
"test": "php -d xdebug.mode=coverage vendor/bin/phpunit"
4545
}
4646
}

0 commit comments

Comments
 (0)