Skip to content

Commit d16a0d8

Browse files
committed
Adding composer require-checker
1 parent 2de35bf commit d16a0d8

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,39 @@ jobs:
4040
- name: "Run PHP-CS-Fixer on tests/"
4141
run: "vendor/bin/php-cs-fixer fix tests/ --dry-run --stop-on-violation --format=checkstyle | cs2pr"
4242

43+
require-checker:
44+
name: "Composer require checker"
45+
runs-on: "ubuntu-latest"
46+
47+
strategy:
48+
matrix:
49+
php-version:
50+
- "7.4"
51+
52+
steps:
53+
- name: "Checkout"
54+
uses: "actions/checkout@v2"
55+
56+
- name: "Install PHP"
57+
uses: "shivammathur/setup-php@v2"
58+
with:
59+
coverage: "none"
60+
php-version: "${{ matrix.php-version }}"
61+
tools: "cs2pr"
62+
63+
- name: "Cache dependencies installed with composer"
64+
uses: "actions/cache@v1"
65+
with:
66+
path: "~/.composer/cache"
67+
key: "php-${{ matrix.php-version }}-composer-locked-${{ hashFiles('composer.lock') }}"
68+
restore-keys: "php-${{ matrix.php-version }}-composer-locked-"
69+
70+
- name: "Install dependencies with composer"
71+
run: "composer install --no-interaction --no-progress --no-suggest"
72+
73+
- name: "Run require-checker"
74+
run: "composer require-checker"
75+
4376
phpunit-mysql57:
4477
name: "PHPUnit on MySQL 5.7 and PhpStan"
4578
runs-on: "ubuntu-latest"

0 commit comments

Comments
 (0)