mirror of
https://github.com/metowolf/Meting.git
synced 2026-09-06 00:59:54 +08:00
22 lines
577 B
YAML
22 lines
577 B
YAML
name: Test
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
phpunit:
|
|
name: PHP-${{ matrix.php_version }}-${{ matrix.perfer }}
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
php_version:
|
|
- 8.0
|
|
- 8.1
|
|
- 8.2
|
|
perfer:
|
|
- stable
|
|
steps:
|
|
- uses: actions/checkout@master
|
|
- name: Install Dependencies
|
|
run: composer update --prefer-dist --no-interaction --no-suggest --prefer-${{ matrix.perfer }}
|
|
- name: Run syntax check
|
|
run: find -L . -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l |