Skip to content

Commit 0a5f91a

Browse files
authored
Merge branch 'main' into feature/update-actions
2 parents b678c6c + 7b33231 commit 0a5f91a

16 files changed

Lines changed: 523 additions & 393 deletions

File tree

.ddev/config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: render-guides
22
type: php
33
docroot: Documentation-GENERATED-temp
4-
php_version: "8.1"
4+
php_version: "8.2"
55
webserver_type: nginx-fpm
66
router_http_port: "80"
77
router_https_port: "443"
@@ -13,7 +13,7 @@ webimage_extra_packages: [build-essential]
1313
use_dns_when_possible: true
1414
composer_version: "2"
1515
web_environment: []
16-
nodejs_version: "18"
16+
nodejs_version: "20"
1717

1818
# Key features of DDEV's config.yaml:
1919

.github/workflows/docker-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on: # yamllint disable-line rule:truthy
1010
name: "Test Dockerfile"
1111

1212
env:
13-
DEFAULT_PHP_VERSION: "8.1"
13+
DEFAULT_PHP_VERSION: "8.2"
1414
RUN_ENVIRONMENT: "local"
1515

1616
jobs:

.github/workflows/main.yaml

Lines changed: 37 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on: # yamllint disable-line rule:truthy
77
- "main"
88

99
env:
10-
DEFAULT_PHP_VERSION: "8.1"
10+
DEFAULT_PHP_VERSION: "8.2"
1111
RUN_ENVIRONMENT: "local"
1212

1313
jobs:
@@ -18,7 +18,6 @@ jobs:
1818
fail-fast: false
1919
matrix:
2020
php:
21-
- '8.1'
2221
- '8.2'
2322
- '8.3'
2423
- '8.4'
@@ -34,10 +33,19 @@ jobs:
3433
php-version: "${{ matrix.php }}"
3534
extensions: 'inotify, pcntl'
3635

37-
- name: "Install dependencies with Composer"
38-
uses: ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520
36+
- name: "Get Composer cache directory"
37+
id: composer-cache
38+
run: echo "dir=$(composer config cache-files-dir)" >> "$GITHUB_OUTPUT"
39+
40+
- name: "Cache Composer dependencies"
41+
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
3942
with:
40-
dependency-versions: "locked"
43+
path: ${{ steps.composer-cache.outputs.dir }}
44+
key: php-${{ matrix.php }}-composer-${{ hashFiles('**/composer.lock') }}
45+
restore-keys: php-${{ matrix.php }}-composer-
46+
47+
- name: "Install dependencies with Composer"
48+
run: composer install --no-interaction --no-progress --prefer-dist
4149

4250
- name: "Run unit tests"
4351
run: "make test-unit ENV=${{ env.RUN_ENVIRONMENT }}"
@@ -59,10 +67,19 @@ jobs:
5967
php-version: "${{ env.DEFAULT_PHP_VERSION }}"
6068
extensions: 'inotify, pcntl'
6169

62-
- name: "Install dependencies with Composer"
63-
uses: ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520
70+
- name: "Get Composer cache directory"
71+
id: composer-cache
72+
run: echo "dir=$(composer config cache-files-dir)" >> "$GITHUB_OUTPUT"
73+
74+
- name: "Cache Composer dependencies"
75+
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
6476
with:
65-
dependency-versions: "locked"
77+
path: ${{ steps.composer-cache.outputs.dir }}
78+
key: php-${{ env.DEFAULT_PHP_VERSION }}-composer-${{ hashFiles('**/composer.lock') }}
79+
restore-keys: php-${{ env.DEFAULT_PHP_VERSION }}-composer-
80+
81+
- name: "Install dependencies with Composer"
82+
run: composer install --no-interaction --no-progress --prefer-dist
6683

6784
- name: "Check for normalized composer.json"
6885
run: "composer normalize --dry-run"
@@ -96,10 +113,19 @@ jobs:
96113
php-version: "${{ env.DEFAULT_PHP_VERSION }}"
97114
extensions: 'inotify, pcntl'
98115

99-
- name: "Install dependencies with Composer"
100-
uses: ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520
116+
- name: "Get Composer cache directory"
117+
id: composer-cache
118+
run: echo "dir=$(composer config cache-files-dir)" >> "$GITHUB_OUTPUT"
119+
120+
- name: "Cache Composer dependencies"
121+
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
101122
with:
102-
dependency-versions: "locked"
123+
path: ${{ steps.composer-cache.outputs.dir }}
124+
key: php-${{ env.DEFAULT_PHP_VERSION }}-composer-${{ hashFiles('**/composer.lock') }}
125+
restore-keys: php-${{ env.DEFAULT_PHP_VERSION }}-composer-
126+
127+
- name: "Install dependencies with Composer"
128+
run: composer install --no-interaction --no-progress --prefer-dist
103129

104130
- name: "Validate monorepo"
105131
run: "make test-monorepo ENV=${{ env.RUN_ENVIRONMENT }}"

.php-cs-fixer.dist.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
->setCacheFile('.cache/.php-cs-fixer.cache')
1313
->setRules([
1414
'@PER-CS1.0' => true,
15-
'@PHP81Migration' => true,
15+
'@PHP82Migration' => true,
1616

1717
// Already implemented PER-CS2 rules we opt-in explicitly
1818
// @todo: Can be dropped once we enable @PER-CS2.0

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:8.1-cli-alpine AS builder
1+
FROM php:8.2-cli-alpine AS builder
22

33
COPY --from=ghcr.io/php/pie:bin /pie /usr/bin/pie
44
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
@@ -12,7 +12,7 @@ COPY . /opt/guides
1212
RUN composer install --no-dev --no-interaction --no-progress \
1313
--no-suggest --optimize-autoloader --classmap-authoritative
1414

15-
FROM php:8.1-cli-alpine
15+
FROM php:8.2-cli-alpine
1616

1717
COPY --from=ghcr.io/php/pie:bin /pie /usr/bin/pie
1818
RUN apk add --update $PHPIZE_DEPS

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "phpDocumentor-based Documentation rendering for docs.typo3.org or custom extensions.",
44
"license": "OPL-1.0",
55
"require": {
6-
"php": "^8.1",
6+
"php": "^8.2",
77
"ext-curl": "*",
88
"ext-dom": "*",
99
"ext-libxml": "*",
@@ -42,6 +42,7 @@
4242
"replace": {
4343
"symfony/polyfill-php80": "*",
4444
"symfony/polyfill-php81": "*",
45+
"symfony/polyfill-php82": "*",
4546
"t3docs/typo3-api": "self.version",
4647
"t3docs/typo3-docs-theme": "self.version",
4748
"t3docs/typo3-guides-cli": "self.version",
@@ -69,7 +70,7 @@
6970
"phpstan/extension-installer": true
7071
},
7172
"platform": {
72-
"php": "8.1.27"
73+
"php": "8.2.28"
7374
},
7475
"sort-packages": true
7576
},

0 commit comments

Comments
 (0)