Skip to content

Update GitHub Actions #17

Update GitHub Actions

Update GitHub Actions #17

Workflow file for this run

name: tests
on:
pull_request:
push:
branches:
- master
jobs:
linux_tests:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: ["8.3", "8.2", "8.1"]
stability: ["prefer-lowest", "prefer-stable"]
name: PHP ${{ matrix.php }} - ${{ matrix.stability }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
coverage: xdebug
- name: Install dependencies
uses: nick-fields/retry@v3
with:
timeout_minutes: 3
max_attempts: 3
command: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
- name: Execute phpcs
run: php vendor/bin/phpcs
- name: Execute tests
run: php vendor/bin/phpunit
# - name: Code coverage
# uses: codecov/codecov-action@v4