-
-
Notifications
You must be signed in to change notification settings - Fork 138
45 lines (38 loc) · 1.15 KB
/
exercise-tests-phpunit-10.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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-22.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@a5ac7e51b41094c92402da3b24376905380afc29
- uses: shivammathur/setup-php@fc14643b0a99ee9db10a3c025a33d76544fa3761
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