Skip to content

Commit d2069c7

Browse files
committed
Refactor run configurations and workflows, add Docker setup
Replaced old `.idea` run configurations for OpenAPI/Swagger with Docker-based `docker-compose.yml`. Updated GitHub workflow with container options and upgraded `checkout` action to v5. Added new `psalm` and `Local Server For Test` configurations.
1 parent 2518c13 commit d2069c7

6 files changed

Lines changed: 47 additions & 22 deletions

File tree

.github/workflows/phpunit.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ on:
1212
jobs:
1313
Build:
1414
runs-on: 'ubuntu-latest'
15-
container: 'byjg/php:${{ matrix.php-version }}-cli'
15+
container:
16+
image: 'byjg/php:${{ matrix.php-version }}-cli'
17+
options: --user root --privileged
1618
strategy:
1719
matrix:
1820
php-version:
@@ -22,7 +24,7 @@ jobs:
2224
- "8.1"
2325

2426
steps:
25-
- uses: actions/checkout@v4
27+
- uses: actions/checkout@v5
2628
- name: Setup test
2729
run: |
2830
composer install

.idea/runConfigurations/Local_Server_For_Test.xml

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

.idea/runConfigurations/Start_OpenApi_Host.xml

Lines changed: 0 additions & 10 deletions
This file was deleted.

.idea/runConfigurations/Start_Swagger_Host.xml

Lines changed: 0 additions & 10 deletions
This file was deleted.

.idea/runConfigurations/psalm.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.

docker-compose.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
services:
2+
swagger-test:
3+
image: byjg/php:8.4-fpm-nginx
4+
working_dir: /srv
5+
ports:
6+
- "8080:80"
7+
environment:
8+
- SPEC=swagger
9+
- PHP_CONTROLLER=/tests/rest/app.php
10+
- NGINX_ROOT=/srv
11+
volumes:
12+
- ${PWD}:/srv
13+
14+
openapi-test:
15+
image: byjg/php:8.4-fpm-nginx
16+
working_dir: /srv
17+
ports:
18+
- "8081:80"
19+
environment:
20+
- SPEC=openapi
21+
- PHP_CONTROLLER=/tests/rest/app.php
22+
- NGINX_ROOT=/srv
23+
volumes:
24+
- ${PWD}:/srv
25+

0 commit comments

Comments
 (0)