This repository has been archived by the owner on May 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
55 lines (55 loc) · 1.62 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
50
51
52
53
54
55
name: CI
on: [push, pull_request]
jobs:
cs-check:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@master
- name: setup
uses: shivammathur/[email protected]
with:
php-version: 8.3
coverage: none
- name: install PHP CS Fixer
uses: ramsey/composer-install@v2
with:
composer-options: '--working-dir=tools/php-cs-fixer'
- name: 'php-cs-fixer check'
run: 'tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --dry-run --diff'
tests:
runs-on: ubuntu-latest
name: tests
strategy:
fail-fast: false
matrix:
php-versions:
- 8.2
- 8.3
symfony-versions:
- 6.4.*
- 7.0.*
steps:
- name: checkout
uses: actions/checkout@master
- name: cache-composer
uses: actions/cache@v2
with:
path: ~/.composer/cache/
key: composer-${{ github.sha }}
- name: setup
uses: shivammathur/[email protected]
with:
php-version: '${{ matrix.php-versions }}'
coverage: none
extensions: mbstring, fileinfo, json, intl, dom
- name: Install Symfony Flex
run: |
composer global config --no-plugins allow-plugins.symfony/flex true
composer global require --no-progress --no-scripts --no-plugins symfony/flex
- name: composer update
run: composer update --prefer-dist
env:
SYMFONY_REQUIRE: "${{ matrix.symfony-versions }}"
- name: tests
run: SYMFONY_DEPRECATIONS_HELPER="disabled=1" vendor/bin/simple-phpunit