Fix the tests and dependencies. #23
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: PHP | |
on: | |
push: | |
branches: | |
pull_request: | |
branches: | |
jobs: | |
tests: | |
runs-on: "ubuntu-latest" | |
name: "Tests | PHP ${{ matrix.php-version }}" | |
strategy: | |
matrix: | |
php-version: | |
- "8.1" | |
# @todo need to bump phpunit for 8.0 testing | |
# - "8.0" | |
steps: | |
- name: "Checkout" | |
uses: "actions/checkout@v2" | |
- name: "Install PHP" | |
uses: "shivammathur/setup-php@v2" | |
with: | |
coverage: "none" | |
php-version: "${{ matrix.php-version }}" | |
tools: composer:v2 | |
- name: "Install dependencies" | |
run: "composer update --no-progress --prefer-dist" | |
#- name: "PHPCS" | |
# run: "php vendor/bin/phpcs src" | |
- name: "PHPUnit" | |
env: | |
CREDENTIALS: ${{ secrets.CREDENTIALS }} | |
run: "php vendor/bin/phpunit" | |