Skip to content

chore: fix gh actions #3

chore: fix gh actions

chore: fix gh actions #3

Workflow file for this run

name: Unit Tests
on: [push, pull_request]
jobs:
build:
strategy:
fail-fast: false
matrix:
operating-system: [ubuntu-latest]
php-versions: ["7.2", "7.3", "7.4", "8.0", "8.1", "8.2", "8.3"]
dependency-versions: ["highest", "lowest"]
runs-on: ${{ matrix.operating-system }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: gmp
coverage: xdebug
- name: Configure Composer platform
run: composer config platform.php ${{ matrix.php-versions }}
- name: Install dependencies
run: |
if [ "${{ matrix.dependency-versions }}" = "lowest" ]; then
composer update --prefer-lowest --prefer-stable --no-interaction
else
composer update --prefer-stable --no-interaction
fi
- name: Run linter
run: make lint
- name: Run unit tests
run: make unit
- name: Run static analysis
run: make static
- name: Upload coverage
uses: codecov/codecov-action@v6