-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (29 loc) · 846 Bytes
/
tests.yml
File metadata and controls
37 lines (29 loc) · 846 Bytes
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
name: Tests
on:
pull_request:
push:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
jobs:
tests:
runs-on: ubuntu-24.04
strategy:
matrix:
php-versions: [ '8.3', '8.4', '8.5' ]
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
coverage: none
- name: Composer install
run: composer install --no-scripts --no-interaction --prefer-dist -oa
- name: Run Phpunit
run: ./vendor/bin/phpunit
- name: Run PHPStan
run: ./vendor/bin/phpstan analyse src