Skip to content

sync connect

sync connect #410

name: Exercise tests with PHPUnit 10
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
jobs:
test:
name: PHP ${{ matrix.php-version }} - ${{ matrix.os }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
php-version: [8.1, 8.2, 8.3]
os: [ubuntu-24.04, windows-2022, macOS-14]
steps:
- name: Set git line endings
if: ${{ matrix.os == 'windows-2022' }}
run: |
git config --system core.autocrlf false
git config --system core.eol lf
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: shivammathur/setup-php@c541c155eee45413f5b09a52248675b1a2575231
with:
php-version: ${{ matrix.php-version }}
extensions: gmp
- name: Install dependencies
shell: bash
run: |
curl -Lo ./bin/phpunit-10.phar https://phar.phpunit.de/phpunit-10.phar
chmod +x bin/phpunit-10.phar
- name: Test exercises
shell: bash
env:
PHPUNIT_BIN: 'bin/phpunit-10.phar'
XDEBUG_MODE: off
run: bin/test.sh