Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,14 @@ jobs:
- name: Validate composer.json and composer.lock
run: composer validate --strict

- name: Lint (syntax check only)
if: matrix.php-versions == '7.1' || matrix.php-versions == '7.2'
run: find src tests -name '*.php' -print0 | xargs -0 -n1 php -l

- name: Install Dependencies
if: matrix.php-versions != '7.1' && matrix.php-versions != '7.2'
run: composer install --no-interaction --prefer-dist --optimize-autoloader

- name: Tests
if: matrix.php-versions != '7.1' && matrix.php-versions != '7.2'
run: ./vendor/bin/phpunit ./tests
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,15 @@ Laravel and PHP developers!

Contributions are very welcome! There isn't a formal guide, but throw in an Issue or PR, and we'll go from there.

### Running the tests

```bash
composer install
./vendor/bin/phpunit ./tests
```

PHP 7.1 and 7.2 are still supported at runtime, but PHPUnit's current dev-dependency chain no longer installs on them. CI syntax-checks the source on those versions via `php -l` instead of running the test suite — enough to catch any code that wouldn't parse on PHP 7.1/7.2. The full test suite runs on PHP 7.3 and later.

## Security Vulnerabilities

Please report any security vulnerabilities via the [GitHub project](https://github.com/valorin/random)
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"require-dev": {
"illuminate/support": "^5.0 || ^10.0 || ^11.0 || ^12.0",
"phpunit/phpunit": "^7.0 || ^9.6 || ^10.5"
"phpunit/phpunit": "^7.5 || ^9.6 || ^10.5"
},
"autoload": {
"psr-4": {
Expand Down
Loading