Skip to content

Commit

Permalink
Prepare workflow checks
Browse files Browse the repository at this point in the history
  • Loading branch information
lochmueller committed Aug 27, 2024
1 parent 67480c7 commit a27ef12
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
name: Test
on: [push,pull_request]
on: [ push,pull_request ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [ '8.1', '8.2' ]
typo3: [ '12' ]
php: [ '8.1', '8.2', '8.3' ]
typo3: [ '12', '13' ]
exclude:
- php: '8.1'
typo3: '13'
steps:
- uses: actions/checkout@v1
- name: Setup PHP with PECL extension
Expand Down
2 changes: 1 addition & 1 deletion Classes/Middleware/FrontendCacheMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function process(
RequestHandlerInterface $handler,
): ResponseInterface {
if (class_exists(CacheInstruction::class)) {
// Get the attribute, if not available, use a new CacheInstruction object
// @phpstan-ignore-next-line
$cacheInstruction = $request->getAttribute(
'frontend.cache.instruction',
new CacheInstruction(),
Expand Down
1 change: 1 addition & 0 deletions Classes/Middleware/GenerateMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ protected function calculateLifetime(TypoScriptFrontendController $tsfe): int
// @todo migrate for v13 to Events
// Check ModifyCacheLifetimeForPageEvent & AfterCachedPageIsPersistedEvent

// @phpstan-ignore-next-line
$timeOutTime = $tsfe->get_cache_timeout();

// If page has a endtime before the current timeOutTime, use it instead:
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
"php": "^8.1",
"ext-pdo": "*",
"ext-zlib": "*",
"typo3/cms-core": "^12.4||13.*.*@dev",
"typo3/cms-backend": "^12.4||13.*.*@dev",
"typo3/cms-extensionmanager": "^12.4||13.*.*@dev"
"typo3/cms-core": "^12.4||^13.2",
"typo3/cms-backend": "^12.4||^13.2",
"typo3/cms-extensionmanager": "^12.4||^13.2"
},
"license": "GPL-2.0-or-later",
"homepage": "https://extensions.typo3.org/extension/staticfilecache",
Expand Down

0 comments on commit a27ef12

Please sign in to comment.