30 lines
692 B
YAML
30 lines
692 B
YAML
name: PHPUnit
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
phpunit:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Cancel Previous Run
|
|
uses: styfle/cancel-workflow-action@0.6.0
|
|
with:
|
|
access_token: ${{ github.token }}
|
|
|
|
- name: Setup PHP
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: '8.0'
|
|
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, gd, exif, imagick, bcmath
|
|
coverage: none
|
|
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install Composer dependencies
|
|
run: composer install --ignore-platform-reqs
|
|
|
|
- name: Run tests
|
|
run: ./vendor/bin/phpunit
|