-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (35 loc) · 1.13 KB
/
tests.yml
File metadata and controls
45 lines (35 loc) · 1.13 KB
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: 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' ]
symfony-version: ['6.4.*', '7.4.*']
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
tools: phpstan
- name: Configure Symfony
run: composer config extra.symfony.require "${{ matrix.symfony-version }}"
- name: Update project dependencies
run: composer update --no-progress --ansi --prefer-stable
- name: Composer install
run: composer install --no-scripts --no-interaction --prefer-dist -oa
- name: Run Phpunit
run: ./vendor/bin/phpunit
- name: Run Phpstan
run: phpstan analyze DependencyInjection Services