Skip to content

Commit a935210

Browse files
authored
Switch to Symfony 8.0 (#17)
1 parent 711fbe0 commit a935210

26 files changed

+614
-52
lines changed

.gitattributes

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
# Files and directories which won't be included in .zip archive during running `composer install --prefer-dist`
22

3+
/.idea export-ignore
34
/.github export-ignore
45
/.gitattributes export-ignore
56
/.gitignore export-ignore
6-
/.phpstan.neon export-ignore
77
/.scrutinizer.yml export-ignore
88
/.styleci.yml export-ignore
9-
/.travis.yml export-ignore
9+
/docker-compose.yml export-ignore
10+
/Dockerfile export-ignore
1011
/phpstan.neon export-ignore
1112
/phpunit.xml.dist export-ignore
1213
/Tests export-ignore
14+
/Resources/docs export-ignore

.github/workflows/ci.yaml

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ name: CI
22

33
on:
44
pull_request:
5-
workflow_dispatch: ~
65
push:
76
branches:
87
- 'main'
@@ -18,7 +17,7 @@ jobs:
1817
- name: 'Setup PHP'
1918
uses: shivammathur/setup-php@v2
2019
with:
21-
php-version: 8.3
20+
php-version: 8.4
2221
ini-values: memory_limit=-1
2322
coverage: none
2423
tools: composer:v2
@@ -37,7 +36,7 @@ jobs:
3736
- name: 'Setup PHP'
3837
uses: shivammathur/setup-php@v2
3938
with:
40-
php-version: 8.3
39+
php-version: 8.4
4140
ini-values: memory_limit=-1
4241
coverage: none
4342
tools: composer:v2
@@ -58,7 +57,7 @@ jobs:
5857
- name: 'Setup PHP'
5958
uses: shivammathur/setup-php@v2
6059
with:
61-
php-version: 8.3
60+
php-version: 8.4
6261
ini-values: memory_limit=-1
6362
coverage: none
6463
tools: composer:v2
@@ -68,8 +67,8 @@ jobs:
6867
working-directory: './'
6968

7069
- name: 'Run CodeSniffer'
71-
run: ./vendor/bin/phpcs ./ -p --encoding=utf-8 --extensions=php --ignore="vendor|Tests|src|public" --standard=./vendor/escapestudios/symfony2-coding-standard/Symfony
72-
70+
run: ./vendor/bin/phpcs ./ -p --encoding=utf-8 --extensions=php --ignore="vendor|Tests" --standard=./vendor/escapestudios/symfony2-coding-standard/Symfony
71+
7372
static-analysis:
7473
needs: composer-install
7574
runs-on: ubuntu-latest
@@ -83,7 +82,7 @@ jobs:
8382
- name: 'Setup PHP'
8483
uses: shivammathur/setup-php@v2
8584
with:
86-
php-version: 8.3
85+
php-version: 8.4
8786
ini-values: memory_limit=-1
8887
coverage: none
8988
tools: composer:v2
@@ -103,11 +102,10 @@ jobs:
103102
fail-fast: false
104103
matrix:
105104
php-version:
106-
- '8.2'
107-
- '8.3'
105+
- '8.4'
106+
- '8.5'
108107
symfony-version:
109-
- '7.0'
110-
- '7.1'
108+
- '8.0'
111109
steps:
112110
- name: 'Checkout Code'
113111
uses: actions/checkout@v4
@@ -127,7 +125,7 @@ jobs:
127125
working-directory: './'
128126

129127
- name: 'Run PHPUnit'
130-
run: ./vendor/bin/phpunit -v -c phpunit.xml.dist
128+
run: ./vendor/bin/phpunit -c phpunit.xml.dist
131129

132130
code-coverage:
133131
needs: test
@@ -142,7 +140,7 @@ jobs:
142140
- name: 'Setup PHP'
143141
uses: shivammathur/setup-php@v2
144142
with:
145-
php-version: 8.3
143+
php-version: 8.4
146144
ini-values: memory_limit=-1
147145
coverage: pcov
148146
tools: composer:v2
@@ -152,7 +150,7 @@ jobs:
152150
working-directory: './'
153151

154152
- name: 'Run PHPUnit with Code Coverage'
155-
run: ./vendor/bin/phpunit -v -c phpunit.xml.dist --coverage-clover=coverage.xml
153+
run: ./vendor/bin/phpunit -c phpunit.xml.dist --coverage-clover=coverage.xml
156154

157155
- name: 'Download Coverage Files'
158156
uses: actions/download-artifact@v4

.gitignore

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,38 @@
1+
/vendor/
2+
.phpunit.result.cache
3+
composer.lock
4+
.phpcs-cache
5+
.php-cs-fixer.cache
6+
clover-coverage.xml
7+
8+
###> PhpStrom Shared Project Settings ###
9+
.idea/*
10+
!.idea/SwaggerBundle.iml
11+
!.idea/icon.svg
12+
!.idea/inspectionProfiles
13+
!.idea/modules.xml
14+
!.idea/php-test-framework.xml
15+
!.idea/php.xml
16+
!.idea/phpunit.xml
17+
!.idea/runConfigurations
18+
###< PhpStrom Shared Project Settings ###
19+
120
###> symfony/framework-bundle ###
2-
.phpunit.result
21+
/.env.local
22+
/.env.local.php
23+
/.env.*.local
24+
/config/secrets/prod/prod.decrypt.private.php
25+
/public/bundles/
26+
/var/
327
/vendor/
428
###< symfony/framework-bundle ###
529

30+
###> friendsofphp/php-cs-fixer ###
31+
/.php-cs-fixer.php
32+
/.php-cs-fixer.cache
33+
###< friendsofphp/php-cs-fixer ###
34+
635
###> phpunit/phpunit ###
736
/phpunit.xml
8-
.phpunit.result.cache
37+
/.phpunit.cache/
938
###< phpunit/phpunit ###

.idea/SwaggerBundle.iml

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 156 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/php-test-framework.xml

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)