-
-
Notifications
You must be signed in to change notification settings - Fork 22
32 lines (31 loc) · 1.07 KB
/
testing.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
name: Testing dir2cast
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
operating-system: [ubuntu-latest, macos-11]
php-versions: ['7.3', '7.4', '8.0', '8.1', '8.2']
runs-on: ${{ matrix.operating-system }}
steps:
- name: Setup PHP and extensions
uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring
coverage: xdebug
tools: php-cs-fixer
env:
fail-fast: true
- name: Checkout
uses: actions/checkout@v3
- name: Composer Install
uses: ramsey/composer-install@v2
with:
working-directory: "test"
- name: Test with phpunit (MacOS, Linux)
if: ${{ ! contains(matrix.operating-system, 'windows') }}
run: ./test/run.sh --do-not-cache-result .
- name: Test with phpunit (Windows)
if: ${{ contains(matrix.operating-system, 'windows') }}
run: cd test ; vendor\bin\phpunit --bootstrap "bootstrap.php" .