Update Cache creation tools #142
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: Build | |
on: | |
push: | |
branches: [master, develop, develop-5.0] | |
pull_request: | |
branches: [master, develop, develop-5.0] | |
workflow_dispatch: | |
jobs: | |
PHPUnit: | |
strategy: | |
fail-fast: false | |
matrix: | |
php_versions: ['8.0', '8.1', '8.2'] | |
os: [ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
name: PHPUnit Tests - ${{ matrix.php_versions }} - ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup PHP, with composer and extensions | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php_versions }} | |
extensions: mbstring, dom, fileinfo, gd | |
coverage: xdebug | |
tools: pecl | |
- name: Install Dependencies | |
run: composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist | |
- name: Setup Redis-server | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
uses: supercharge/[email protected] | |
with: | |
redis-version: 6 | |
- name: Setup Memcached | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
uses: niden/actions-memcached@v7 | |
- name: Configure matchers for PHPUnit | |
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" | |
- name: Execute tests via PHPUnit | |
run: vendor/bin/phpunit | |
- name: Upload coverage to Codecov | |
if: github.event_name != 'schedule' | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: ./_meta/coverage.xml | |
fail_ci_if_error: true |