-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (33 loc) · 1.2 KB
/
ci.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
name: CI
on: [ push ]
env:
SYMFONY_PHPUNIT_DIR: "$HOME/symfony-bridge/.phpunit"
jobs:
build-test:
runs-on: ubuntu-latest
strategy:
matrix:
php: ['8.1', '8.2']
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
coverage: "none"
ini-values: "memory_limit=-1"
php-version: "${{ matrix.php }}"
tools: "composer, composer-normalize"
- name: Display versions
run: |
php --version
php -r 'foreach (get_loaded_extensions() as $extension) echo $extension . " " . phpversion($extension) . PHP_EOL;'
php -i
- name: Install Composer
run: composer install --optimize-autoloader --classmap-authoritative --no-interaction
- name: Lint
run: composer run-script lint
- name: Test Suite
run: composer run-script test
env:
PHP_CS_FIXER_IGNORE_ENV: 1