mirror of
https://github.com/jbcr/core.git
synced 2026-03-26 09:52:10 +01:00
30 lines
951 B
YAML
30 lines
951 B
YAML
name: Unit Tests Checks
|
|
|
|
on:
|
|
pull_request:
|
|
|
|
jobs:
|
|
unittests:
|
|
strategy:
|
|
matrix:
|
|
php-version: [ '7.2', '8.0' ]
|
|
fail-fast: false
|
|
name: PHPUnit
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: shivammathur/setup-php@v2
|
|
with:
|
|
# test the lowest version, to make sure checks pass on it
|
|
php-version: ${{ matrix.php-version }}
|
|
extensions: json, mbstring, pdo, curl, pdo_sqlite
|
|
coverage: none
|
|
- name: Initialise
|
|
run: |
|
|
sudo composer self-update -q
|
|
- name: Install dependencies
|
|
run: |
|
|
sudo COMPOSER_MEMORY_LIMIT=-1 COMPOSER_PROCESS_TIMEOUT=60 composer update --prefer-dist --no-progress --no-scripts
|
|
- name: run PHP Unit
|
|
run: ./vendor/bin/phpunit
|