Skip to content

Commit

Permalink
Add isList validation (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaultjunin authored Jan 7, 2023
1 parent b5eb6e1 commit 7dd96ff
Show file tree
Hide file tree
Showing 8 changed files with 370 additions and 683 deletions.
44 changes: 27 additions & 17 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,37 @@ jobs:
build:

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [ 8.1, 8.2 ]

name: PHP ${{ matrix.php }} tests

steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e
with:
php-version: ${{ matrix.php }}

- uses: actions/checkout@v3

- name: Validate composer.json and composer.lock
run: composer validate --strict
- name: Validate composer.json and composer.lock
run: composer validate --strict

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Install dependencies
run: composer install --prefer-dist --no-progress

# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
# Docs: https://getcomposer.org/doc/articles/scripts.md
# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
# Docs: https://getcomposer.org/doc/articles/scripts.md

- name: Run test suite
run: composer run-script test
- name: Run test suite
run: composer run-script test
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
}
],
"require": {
"php": ">=7.4",
"php": ">=8.1",
"adbario/php-dot-notation": "^2.2"
},
"require-dev": {
Expand Down
Loading

0 comments on commit 7dd96ff

Please sign in to comment.