Skip to content

Commit eaa4513

Browse files
chore: update to API Platfom 3.2.13 + validate OpenAPI schema with @Redocly (#375)
1 parent 9dc4b92 commit eaa4513

File tree

7 files changed

+28
-18
lines changed

7 files changed

+28
-18
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ jobs:
7171
-
7272
name: Run PHPStan
7373
run: docker compose exec -T php vendor/bin/phpstan --memory-limit=256M
74+
-
75+
name: Check OpenAPI
76+
run: docker compose exec -T php bin/console api:openapi:export --yaml | docker run --rm -i -v $(pwd)/redocly.yaml:/spec/redocly.yaml redocly/cli lint /dev/stdin
7477

7578
# run e2e tests iso-prod
7679
e2e-tests:
@@ -129,18 +132,18 @@ jobs:
129132
-
130133
name: Cache Playwright Binaries
131134
id: playwright-cache
132-
uses: actions/cache@v3
135+
uses: actions/cache@v4
133136
with:
134137
path: ~/.cache/ms-playwright
135138
key: ${{ runner.os }}-playwright
136139
-
137140
name: Install PNPM
138141
uses: pnpm/action-setup@v2
139142
with:
140-
version: 8
143+
version: latest
141144
-
142145
name: Cache PNPM
143-
uses: actions/cache@v3
146+
uses: actions/cache@v4
144147
with:
145148
path: ${{ env.PNPM_HOME }}
146149
key: ${{ runner.os }}-pnpm-${{ github.run_id }}
@@ -197,7 +200,7 @@ jobs:
197200
# Lint API
198201
-
199202
name: PHP CS Fixer Cache
200-
uses: actions/cache@v3
203+
uses: actions/cache@v4
201204
with:
202205
path: api/.php-cs-fixer.cache
203206
key: ${{ runner.OS }}-phpcsfixer-${{ github.sha }}
@@ -227,10 +230,10 @@ jobs:
227230
name: Install PNPM
228231
uses: pnpm/action-setup@v2
229232
with:
230-
version: 8
233+
version: latest
231234
-
232235
name: Cache PNPM
233-
uses: actions/cache@v3
236+
uses: actions/cache@v4
234237
with:
235238
path: ${{ env.PNPM_HOME }}
236239
key: ${{ runner.os }}-pnpm-${{ github.run_id }}
@@ -248,7 +251,7 @@ jobs:
248251
# Lint HELM
249252
-
250253
name: Cache Helm Dependencies
251-
uses: actions/cache@v3
254+
uses: actions/cache@v4
252255
with:
253256
path: helm/api-platform/charts/
254257
key: ${{ runner.os }}-helm-dependencies-${{ github.run_id }}

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
gcloud container clusters get-credentials ${{ inputs.gke-cluster }} --zone ${{ inputs.gke-zone }}
7171
-
7272
name: Cache Helm Dependencies
73-
uses: actions/cache@v3
73+
uses: actions/cache@v4
7474
with:
7575
path: helm/api-platform/charts/
7676
key: ${{ runner.os }}-helm-dependencies-${{ github.run_id }}

.github/workflows/security.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
run: docker pull europe-west1-docker.pkg.dev/${{ secrets.GKE_PROJECT }}/${{ secrets.GKE_PROJECT }}/${{ matrix.image }}:latest
6262
-
6363
name: Cache Trivy
64-
uses: actions/cache@v3
64+
uses: actions/cache@v4
6565
with:
6666
path: .trivy
6767
key: ${{ runner.os }}-trivy-${{ github.run_id }}

api/composer.lock

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

api/config/packages/api_platform.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
api_platform:
22
title: API Platform's demo
3-
version: 3.2.12
3+
version: 3.2.13
44
description: |
55
This is a demo application of the [API Platform](https://api-platform.com) framework.
66
[Its source code](https://github.com/api-platform/demo) includes various examples, check it out!

helm/api-platform/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ type: application
1717
# This is the chart version. This version number should be incremented each time you make changes
1818
# to the chart and its templates, including the app version.
1919
# Versions are expected to follow Semantic Versioning (https://semver.org/)
20-
version: 3.2.12
20+
version: 3.2.13
2121

2222
# This is the version number of the application being deployed. This version number should be
2323
# incremented each time you make changes to the application. Versions are not expected to
2424
# follow Semantic Versioning. They should reflect the version the application is using.
25-
appVersion: 3.2.12
25+
appVersion: 3.2.13
2626

2727
dependencies:
2828
- name: postgresql

redocly.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# See https://redocly.com/docs/cli/configuration/rules/ for more information.
2+
extends:
3+
- recommended
4+
5+
rules:
6+
info-license: off
7+
operation-4xx-response: off

0 commit comments

Comments
 (0)