Move to versioning with git tags #38
Workflow file for this run
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, pull_request] | |
jobs: | |
run: | |
strategy: | |
max-parallel: 3 | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
php: ["8.1", "8.2", "8.3"] | |
math_biginteger_mode: [INTERNAL, GMP, BCMATH] | |
include: | |
- os: ubuntu-latest | |
phpstan: yes | |
name: "PHP ${{ matrix.php }} (bigint mode: ${{ matrix.math_biginteger_mode }}) (OS: ${{ matrix.os }})" | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
extensions: xdebug, dom, gmp, bcmath | |
coverage: xdebug | |
env: | |
fail-fast: true | |
- name: Validate composer.json and composer.lock | |
run: composer validate | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-progress --no-suggest | |
- name: Run test suite | |
run: composer run-script test | |
env: | |
MATH_BIGINTEGER_MODE: ${{ matrix.math_biginteger_mode }} | |
- if: ${{ matrix.phpstan }} | |
uses: php-actions/phpstan@v3 |