-
-
Notifications
You must be signed in to change notification settings - Fork 6
32 lines (27 loc) · 990 Bytes
/
composer_require_checker.yml
File metadata and controls
32 lines (27 loc) · 990 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: composer_require_checker
permissions:
contents: read
on:
push:
jobs:
composer-require-checker:
name: Composer Require Checker
runs-on: ubuntu-latest
continue-on-error: ${{ github.event.pull_request.base.ref != 'main' }}
strategy:
matrix:
php-version: [ "8.4", "8.3", "8.2", "8.1" ]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set safe directory
run: git config --global --add safe.directory /github/workspace
- name: Install PHP and Composer
uses: shivammathur/setup-php@v2
- name: Install project dependencies
run: composer install --no-plugins --no-interaction
- name: Run ComposerRequireChecker
run: |
wget -O composer-require-checker.phar https://github.com/maglnet/ComposerRequireChecker/releases/latest/download/composer-require-checker.phar
XDEBUG_MODE=off php composer-require-checker.phar check ./composer.json