Skip to content

Bump stefanzweifel/git-auto-commit-action in the github-actions group… #84

Bump stefanzweifel/git-auto-commit-action in the github-actions group…

Bump stefanzweifel/git-auto-commit-action in the github-actions group… #84

name: Exercise tests with PHPUnit 11
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.2, 8.3, 8.4]
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@08c6903cd8c0fde910a37f88322edcfb5dd907a8
- uses: shivammathur/setup-php@bf6b4fbd49ca58e4608c9c89fba0b8d90bd2a39f
with:
php-version: ${{ matrix.php-version }}
extensions: gmp
- name: Install dependencies
shell: bash
run: |
curl -Lo ./bin/phpunit-11.phar https://phar.phpunit.de/phpunit-11.phar
chmod +x bin/phpunit-11.phar
- name: Test exercises
shell: bash
env:
PHPUNIT_BIN: 'bin/phpunit-11.phar'
XDEBUG_MODE: off
run: bin/test.sh