This repository has been archived by the owner on Sep 17, 2023. It is now read-only.
Update README.md #4
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: Testing | |
on: [pull_request, push] | |
jobs: | |
run: | |
runs-on: ${{ matrix.os }}-latest | |
strategy: | |
matrix: | |
# 1) All allowed OS | |
os: [ubuntu, windows, macOS] | |
# 2) All allowed PHP versions greater than 7.4 | |
php: [7.4] | |
# 3) Lowest and highest dependency versions | |
prefer: ['lowest', 'highest'] | |
name: ${{ matrix.os }} / PHP ${{ matrix.php }} / ${{ matrix.prefer }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
- name: PHP Installtion | |
uses: shivammathur/setup-php@master | |
with: | |
php-version: ${{ matrix.php }} | |
extension-csv: mbstring, dom, xsl, openssl, fileinfo | |
- name: Composer Installation (Prefer Lowest) | |
if: matrix.prefer == 'lowest' | |
run: composer update --no-interaction --prefer-dist --no-suggest --prefer-lowest | |
- name: Composer Installation (Prefer Highest) | |
if: matrix.prefer == 'highest' | |
run: composer update --no-interaction --prefer-dist --no-suggest | |
- name: Unit Testing | |
run: composer run phpunit |