Skip to content

Commit 447de3d

Browse files
chore: update structure from standard edition (#518)
1 parent b99416a commit 447de3d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+1849
-1735
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ pnpm-lock.yaml text eol=lf merge=ours
1818
*.png binary
1919

2020
update-deps.sh export-ignore
21+
.github/CONTRIBUTING.md

.github/workflows/ci.yml

Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -175,39 +175,9 @@ jobs:
175175
-
176176
name: Load Fixtures
177177
run: docker compose run --rm php bin/console doctrine:fixtures:load --no-interaction
178-
-
179-
name: Cache Playwright Binaries
180-
uses: actions/cache@v4
181-
with:
182-
path: ~/.cache/ms-playwright
183-
key: ${{ runner.os }}-playwright
184-
-
185-
name: Install PNPM
186-
uses: pnpm/action-setup@v4
187-
with:
188-
version: latest
189-
-
190-
name: Cache PNPM
191-
uses: actions/cache@v4
192-
with:
193-
path: ${{ env.PNPM_HOME }}
194-
key: ${{ runner.os }}-pnpm-${{ github.run_id }}
195-
restore-keys: |
196-
${{ runner.os }}-pnpm-
197-
-
198-
name: Install Dependencies
199-
working-directory: pwa
200-
run: pnpm install
201-
-
202-
name: Install Playwright Browsers with Deps
203-
working-directory: pwa
204-
run: pnpm exec playwright install --with-deps
205178
-
206179
name: Run Playwright
207-
working-directory: pwa
208-
timeout-minutes: 10
209-
# use 1 worker to prevent conflict between scenarios (longer but safer)
210-
run: pnpm exec playwright test --workers=1 --grep ${{ matrix.annotation }}
180+
run: docker run --network host -w /app -v ./e2e:/app --rm --ipc=host mcr.microsoft.com/playwright:v1.50.0-noble /bin/sh -c 'npm i; npx playwright test --grep ${{ matrix.annotation }};'
211181
-
212182
name: Debug Services
213183
if: failure()
@@ -219,7 +189,7 @@ jobs:
219189
if: failure()
220190
with:
221191
name: playwright-screenshots
222-
path: pwa/test-results
192+
path: e2e/test-results
223193

224194
lint:
225195
name: Lint

api/.env.test

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
KERNEL_CLASS='App\Kernel'
33
APP_SECRET='$ecretf0rt3st'
44
SYMFONY_DEPRECATIONS_HELPER=999999
5-
PANTHER_APP_ENV=panther
6-
PANTHER_ERROR_SCREENSHOT_DIR=./var/error-screenshots
75
OIDC_JWK='{"kty": "EC","d": "cT3_vKHaGOAhhmzR0Jbi1ko40dNtpjtaiWzm_7VNwLA","use": "sig","crv": "P-256","x": "n6PnJPqNK5nP-ymwwsOIqZvjiCKFNzRyqWA8KNyBsDo","y": "bQSmMlDXOmtgyS1rhsKUmqlxq-8Kw0Iw9t50cSloTMM","alg": "ES256"}'
86

97
# API Platform distribution

api/Dockerfile

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
#syntax=docker/dockerfile:1.4
1+
#syntax=docker/dockerfile:1
22

33
# Adapted from https://github.com/dunglas/symfony-docker
44

55

66
# Versions
7-
# hadolint ignore=DL3007
87
FROM dunglas/frankenphp:1-php8.3 AS frankenphp_upstream
9-
FROM composer/composer:2-bin AS composer_upstream
108

119

1210
# The different stages of this Dockerfile are meant to be built into separate images
@@ -20,19 +18,21 @@ FROM frankenphp_upstream AS frankenphp_base
2018
WORKDIR /app
2119

2220
# persistent / runtime deps
23-
# hadolint ignore=DL3018
24-
RUN apt-get update; \
25-
apt-get install --no-install-recommends -y \
26-
acl \
27-
file \
28-
gettext \
29-
git \
30-
zip \
31-
; \
32-
rm -rf /var/lib/apt/lists/*
21+
# hadolint ignore=DL3008
22+
RUN apt-get update && apt-get install --no-install-recommends -y \
23+
acl \
24+
file \
25+
gettext \
26+
git \
27+
zip \
28+
&& rm -rf /var/lib/apt/lists/*
29+
30+
# https://getcomposer.org/doc/03-cli.md#composer-allow-superuser
31+
ENV COMPOSER_ALLOW_SUPERUSER=1
3332

3433
RUN set -eux; \
3534
install-php-extensions \
35+
@composer \
3636
apcu \
3737
bcmath \
3838
intl \
@@ -53,19 +53,14 @@ COPY --link frankenphp/Caddyfile /etc/caddy/Caddyfile
5353

5454
ENTRYPOINT ["docker-entrypoint"]
5555

56-
# https://getcomposer.org/doc/03-cli.md#composer-allow-superuser
57-
ENV COMPOSER_ALLOW_SUPERUSER=1
58-
ENV PATH="${PATH}:/root/.composer/vendor/bin"
59-
60-
COPY --from=composer_upstream --link /composer /usr/bin/composer
61-
6256
HEALTHCHECK --start-period=60s CMD curl -f http://localhost:2019/metrics || exit 1
6357
CMD [ "frankenphp", "run", "--config", "/etc/caddy/Caddyfile" ]
6458

6559
# Dev FrankenPHP image
6660
FROM frankenphp_base AS frankenphp_dev
6761

6862
ENV APP_ENV=dev XDEBUG_MODE=off
63+
VOLUME /app/var/
6964

7065
RUN mv "$PHP_INI_DIR/php.ini-development" "$PHP_INI_DIR/php.ini"
7166

@@ -104,4 +99,4 @@ RUN set -eux; \
10499
composer dump-env prod; \
105100
composer run-script --no-dev post-install-cmd; \
106101
chmod +x bin/console; sync; \
107-
cp public/assets/react.production.min.js public/bundles/apiplatform/react/react.production.min.js;
102+
cp public/assets/react.production.min.js public/bundles/apiplatform/react/react.production.min.js;

api/composer.json

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,25 @@
88
"api-platform/doctrine-orm": "^4.1.7",
99
"api-platform/graphql": "^4.1.7",
1010
"api-platform/symfony": "^4.1.7",
11-
"doctrine/common": "^3.4",
12-
"doctrine/doctrine-bundle": "^2.11",
13-
"doctrine/doctrine-fixtures-bundle": "^4.0",
14-
"doctrine/doctrine-migrations-bundle": "^3.3",
15-
"doctrine/orm": "^3.1",
11+
"doctrine/common": "^3.5",
12+
"doctrine/doctrine-bundle": "^2.14",
13+
"doctrine/doctrine-fixtures-bundle": "^4.1",
14+
"doctrine/doctrine-migrations-bundle": "^3.4.1",
15+
"doctrine/orm": "^3.3.2",
1616
"doctrine/persistence": "^3.4",
17-
"myclabs/php-enum": "^1.8",
18-
"nelmio/cors-bundle": "^2.4",
17+
"myclabs/php-enum": "^1.8.5",
18+
"nelmio/cors-bundle": "^2.5",
1919
"runtime/frankenphp-symfony": "^0.2.0",
20-
"seld/jsonlint": "^1.10",
20+
"seld/jsonlint": "^1.11",
2121
"symfony/asset": "7.2.*",
2222
"symfony/clock": "7.2.*",
2323
"symfony/console": "7.2.*",
2424
"symfony/dotenv": "7.2.*",
2525
"symfony/expression-language": "7.2.*",
26-
"symfony/flex": "^2.4",
26+
"symfony/flex": "^2.5",
2727
"symfony/framework-bundle": "7.2.*",
2828
"symfony/http-client": "7.2.*",
29-
"symfony/mercure-bundle": "^0.3.8",
29+
"symfony/mercure-bundle": "^0.3.9",
3030
"symfony/monolog-bundle": "^3.10",
3131
"symfony/property-access": "7.2.*",
3232
"symfony/property-info": "7.2.*",
@@ -37,24 +37,24 @@
3737
"symfony/uid": "7.2.*",
3838
"symfony/validator": "7.2.*",
3939
"symfony/yaml": "7.2.*",
40-
"web-token/jwt-bundle": "^4.0",
41-
"webonyx/graphql-php": "^15.8",
42-
"zenstruck/foundry": "^2.0"
40+
"web-token/jwt-bundle": "^4.0.4",
41+
"webonyx/graphql-php": "^15.20",
42+
"zenstruck/foundry": "^2.3.10"
4343
},
4444
"require-dev": {
45-
"dama/doctrine-test-bundle": "^8.0",
46-
"justinrainbow/json-schema": "^6.0",
47-
"phpstan/extension-installer": "^1.3",
48-
"phpstan/phpdoc-parser": "^2.0",
49-
"phpstan/phpstan": "^2.0",
50-
"phpstan/phpstan-doctrine": "^2.0",
51-
"phpstan/phpstan-phpunit": "^2.0",
52-
"phpstan/phpstan-symfony": "^2.0",
53-
"phpunit/phpunit": "^12.0",
45+
"dama/doctrine-test-bundle": "^8.3",
46+
"justinrainbow/json-schema": "^6.4.1",
47+
"phpstan/extension-installer": "^1.4.3",
48+
"phpstan/phpdoc-parser": "^2.1",
49+
"phpstan/phpstan": "^2.1.11",
50+
"phpstan/phpstan-doctrine": "^2.0.2",
51+
"phpstan/phpstan-phpunit": "^2.0.6",
52+
"phpstan/phpstan-symfony": "^2.0.4",
53+
"phpunit/phpunit": "^12.1.2",
5454
"symfony/browser-kit": "7.2.*",
5555
"symfony/css-selector": "7.2.*",
5656
"symfony/debug-bundle": "7.2.*",
57-
"symfony/maker-bundle": "^1.52",
57+
"symfony/maker-bundle": "^1.62.1",
5858
"symfony/stopwatch": "7.2.*",
5959
"symfony/var-dumper": "7.2.*",
6060
"symfony/web-profiler-bundle": "7.2.*"

0 commit comments

Comments
 (0)