tests #369
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: tests | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
tests: | |
name: Tests (${{matrix.php}}, ${{ matrix.os }}, ${{ matrix.stability }}) | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
php: [ '8.1', '8.2', '8.3' ] | |
os: [ ubuntu-latest, macos-latest, windows-latest ] | |
stability: [ prefer-lowest, prefer-stable ] | |
steps: | |
- name: Set Git To Use LF | |
run: | | |
git config --global core.autocrlf false | |
git config --global core.eol lf | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup PHP ${{ matrix.php }} | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
tools: pecl | |
ini-values: "memory_limit=-1" | |
- name: Validate Composer | |
run: composer validate | |
- name: Install Dependencies | |
uses: nick-invision/retry@v2 | |
with: | |
timeout_minutes: 5 | |
max_attempts: 5 | |
command: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress | |
- name: Execute Unit Tests | |
run: composer test:unit | |
- name: Execute Functional Tests | |
run: composer test:functional |