-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (42 loc) · 1.29 KB
/
ci.yaml
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
46
47
48
49
name: CI
run-name: ${{ github.actor }} is running CI
# workflow_dispatch allows you to run this workflow manually from the Actions tab
on: [ pull_request, workflow_dispatch ]
# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
tests:
name: Tests
runs-on: 'ubuntu-20.04'
strategy:
matrix:
php-versions: [ '8.1', '8.2' ]
phpunit-versions: [ 'latest' ]
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, intl
ini-values: post_max_size=256M, max_execution_time=180
coverage: xdebug
tools: phpunit:${{ matrix.phpunit-versions }}
- name: Checkout repo
uses: actions/checkout@v3
- name: Install composer dependencies
run: composer install --no-scripts --no-interaction
- name: PHPUnit tests
run: ./vendor/bin/phpunit
all-tests:
runs-on: ubuntu-latest
name: Final Results
needs: [tests]
steps:
- run: exit 1
if: >-
${{
contains(needs.*.result, 'failure')
|| contains(needs.*.result, 'cancelled')
}}