build(deps): bump symfony/options-resolver from 6.3.0 to 7.0.0 (#44) #41
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: Unit Tests | |
on: | |
push: | |
paths: | |
- '**.php' | |
- 'composer.json' | |
- '**.yml' | |
jobs: | |
test: | |
name: Test on PHP-${{ matrix.php}} | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
strategy: | |
fail-fast: true | |
matrix: | |
php: [8.1, 8.2] # 7.1 | |
# os: [ubuntu-latest, macOS-latest] # windows-latest, | |
# include: | |
# - os: 'ubuntu-latest' | |
# php: '7.2' | |
# phpunit: '8.5.13' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- run: git fetch --force --tags | |
# usage refer https://github.com/shivammathur/setup-php | |
- name: Setup PHP | |
timeout-minutes: 5 | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php}} | |
tools: pecl, php-cs-fixer, phpunit:${{ matrix.phpunit }} | |
extensions: mbstring, dom, fileinfo, mysql, openssl # , swoole-4.4.19 #optional, setup extensions | |
ini-values: post_max_size=56M, short_open_tag=On #optional, setup php.ini configuration | |
coverage: none #optional, setup coverage driver: xdebug, none | |
- name: Install dependencies | |
run: | | |
git version | |
composer install --no-progress | |
# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit" | |
# Docs: https://getcomposer.org/doc/articles/scripts.md | |
- name: Run test suite | |
run: | | |
phpunit |