Merge pull request #26 from biologeek/slots-interval-fix #43
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: [push, pull_request] | |
jobs: | |
WORDPRESS_UNIT_TESTS: | |
name: Run WordPress plugin unit tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php_version: | |
- '7.4' | |
- '8.0' | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php_version }} | |
tools: composer:v2 | |
- name: Install PHP dependencies | |
run: composer install --prefer-dist --no-progress --no-suggest --no-scripts | |
- name: Run PHPUnit | |
run: php vendor/bin/phpunit |