mailgun-php/.github/workflows/php.yml

50 lines
1.2 KiB
YAML
Raw Normal View History

name: Tests
on:
push: ~
pull_request: ~
jobs:
php:
strategy:
matrix:
php-versions: [ '7.3', '7.4', '8.0' ]
2021-08-18 22:17:06 +03:00
runs-on: 'Ubuntu-20.04'
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
tools: none
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: PHP Unit Tests
run: vendor/bin/phpunit
lowest:
name: Lowest deps
2021-08-18 22:17:06 +03:00
runs-on: ubuntu-20.04
steps:
- name: Set up PHP
uses: shivammathur/setup-php@2.9.0
with:
php-version: 7.4
coverage: pcov
- name: Checkout code
uses: actions/checkout@v2
- name: Download dependencies
run: composer update --no-interaction --prefer-dist --optimize-autoloader --prefer-stable --prefer-lowest
- name: Run tests
2021-08-18 22:17:06 +03:00
run: vendor/bin/phpunit