Skip to content

Sync difference of squares #44

Sync difference of squares

Sync difference of squares #44

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]
php-version: [8.3]
#os: [ubuntu-22.04, windows-2022, macOS-12]
os: [ubuntu-22.04]
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@9bb56186c3b09b4f86b1c65136769dd318469633
- uses: shivammathur/setup-php@8872c784b04a1420e81191df5d64fbd59d3d3033
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
continue-on-error: true
shell: bash
env:
PHPUNIT_BIN: 'bin/phpunit-10.phar'
XDEBUG_MODE: off
run: bin/test.sh