Skip to content

Commit 445f052

Browse files
author
DKravtsov
committed
Updated xdebug, MySQL, documentation. Updated composer dependencies. Improved CI.
1 parent ce4782b commit 445f052

File tree

26 files changed

+2256
-1845
lines changed

26 files changed

+2256
-1845
lines changed

.circleci/config.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ jobs:
33
build:
44
working_directory: ~/html
55
machine:
6-
image: ubuntu-2204:2023.04.2
6+
image: ubuntu-2204:2023.04.2
77
branches:
8-
ignore:
9-
- develop
8+
ignore:
9+
- develop
1010
steps:
1111
- checkout
1212

@@ -28,7 +28,7 @@ jobs:
2828
make info
2929
3030
- run:
31-
name: Run unit/application tests
31+
name: Run Application/Integration/Unit tests
3232
command: |
3333
make phpunit
3434
@@ -72,4 +72,4 @@ jobs:
7272
path: reports
7373

7474
- store_test_results:
75-
path: reports
75+
path: reports/junit.xml

.env

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ WEB_PORT_SSL=443
2727
# XDEBUG_CONFIG possible values: main|osx. Use main value for Linux and Windows, osx value for MacOS.
2828
XDEBUG_CONFIG=main
2929
# Sometimes we need to use different xdebug versions, list of versions can be found here - https://pecl.php.net/package/xdebug
30-
XDEBUG_VERSION=3.4.4
30+
XDEBUG_VERSION=3.4.5
3131
###< XDebug docker configuration ###
3232

3333
###> MySQL docker configuration. Can be overridden in: .env.local, .env.staging, .env.prod. ###
34-
# MySQL version, recommend values: 9.3.0|8.4.5|8.3.0|8.2.0|8.1.0|8.0.39
35-
MYSQL_VERSION=8.4.5
34+
# MySQL version, recommend values: 9.4.0|8.4.6|8.0.43
35+
MYSQL_VERSION=8.4.6
3636
# MySQL INNODB_USE_NATIVE_AIO possible values: 1|0. Set to 0 when AIO interface is not supported on OSX. https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_use_native_aio
3737
INNODB_USE_NATIVE_AIO=1
3838
# Sometimes AWS MySQL RDS has SQL_MODE="NO_ENGINE_SUBSTITUTION" (https://github.com/awsdocs/amazon-rds-user-guide/issues/160) but MySQL default described here - https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_sql_mode

.github/workflows/ci.yml

Lines changed: 73 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,81 @@
11
name: Symfony App
22

33
on:
4-
push:
5-
branches:
6-
- master
7-
- develop
8-
pull_request:
9-
branches:
10-
- master
11-
- develop
12-
release:
13-
types: [published]
4+
push:
5+
branches:
6+
- master
7+
- develop
8+
pull_request:
9+
branches:
10+
- master
11+
- develop
12+
release:
13+
types: [ published ]
1414

1515
jobs:
16-
build:
17-
runs-on: ubuntu-latest
18-
steps:
19-
- uses: actions/checkout@v4
20-
- name: Build the docker images
21-
run: make build-test
22-
- name: Start the docker images
23-
run: make start-test
24-
- name: Check running containers
25-
run: docker ps -a
26-
- name: Wait for database connection
27-
run: make wait-for-db
28-
- name: Run migrations
29-
run: make drop-migrate
30-
- name: Setup transports for Messenger component
31-
run: make messenger-setup-transports
32-
- name: Show framework version and additional info, php & composer version
33-
run: make info
34-
- name: Run test suite
35-
run: make phpunit
36-
- name: Archive coverage data for Qodana
37-
uses: actions/upload-artifact@v4
38-
with:
39-
name: php-coverage-data
40-
path: reports/clover.xml
41-
- name: Checks for security vulnerability advisories for installed packages
42-
run: make composer-audit
43-
- name: Run coding standard
44-
run: make ecs
45-
- name: Run codeSniffer
46-
run: make phpcs
47-
- name: Run PHPStan
48-
run: make phpstan
49-
- name: Run PHPInsights
50-
run: make phpinsights
51-
- name: Run php mess detector
52-
run: make phpmd
53-
- name: Run php copy paste detector
54-
run: make phpcpd
55-
- name: Stop the docker images
56-
run: make stop-test
16+
build:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: Build the docker images
21+
run: make build-test
22+
- name: Start the docker images
23+
run: make start-test
24+
- name: Check running containers
25+
run: docker ps -a
26+
- name: Wait for database connection
27+
run: make wait-for-db
28+
- name: Run migrations
29+
run: make drop-migrate
30+
- name: Setup transports for Messenger component
31+
run: make messenger-setup-transports
32+
- name: Show framework version and additional info, php & composer version
33+
run: make info
34+
- name: Run test suite
35+
run: make phpunit
36+
- name: Archive coverage data for Qodana
37+
uses: actions/upload-artifact@v4
38+
with:
39+
name: php-coverage-data
40+
path: reports/clover.xml
41+
- name: Checks for security vulnerability advisories for installed packages
42+
run: make composer-audit
43+
- name: Run coding standard
44+
run: make ecs
45+
- name: Run codeSniffer
46+
run: make phpcs
47+
- name: Run PHPStan
48+
run: make phpstan
49+
- name: Run PHPInsights
50+
run: make phpinsights
51+
- name: Run php mess detector
52+
run: make phpmd
53+
- name: Run php copy paste detector
54+
run: make phpcpd
55+
- name: Stop the docker images
56+
run: make stop-test
57+
58+
build-staging:
59+
needs: build
60+
runs-on: ubuntu-latest
61+
steps:
62+
- uses: actions/checkout@v4
63+
- name: Build the staging docker images
64+
run: make build-staging
65+
- name: Start the staging docker images
66+
run: make start-staging
67+
- name: Check running staging containers
68+
run: docker ps -a
69+
- name: Wait for database connection
70+
run: make wait-for-db
71+
- name: Run migrations
72+
run: make migrate-no-test
73+
- name: Setup transports for Messenger component
74+
run: make messenger-setup-transports
75+
- name: Show framework version and additional info, php & composer version
76+
run: make info
77+
- name: Stop the staging docker images
78+
run: make stop-staging
5779

5880
# Currently local Qodana report differ from CI Qodana report due to some issues https://youtrack.jetbrains.com/issue/QD-7379
5981
# qodana:

0 commit comments

Comments
 (0)