Skip to content

Commit

Permalink
Merge branch 'release/0.7.23'
Browse files Browse the repository at this point in the history
  • Loading branch information
eliashaeussler committed Sep 22, 2023
2 parents a595607 + e6b8151 commit 7dd00df
Show file tree
Hide file tree
Showing 21 changed files with 832 additions and 699 deletions.
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/packaging_exclude.php export-ignore
/phpstan.neon export-ignore
/phpstan-baseline.neon export-ignore
/phpunit.ci.xml export-ignore
/phpunit.xml export-ignore
/rector.php export-ignore
/renovate.json export-ignore
/typoscript-lint.yml export-ignore
38 changes: 0 additions & 38 deletions .github/dependabot.yml

This file was deleted.

12 changes: 6 additions & 6 deletions .github/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ changelog:
- question
- wontfix
categories:
- title: 📖 Documentation
labels:
- documentation
- title: ⚡ Breaking
labels:
- breaking
Expand All @@ -21,12 +18,15 @@ changelog:
- title: 🚑 Fixed
labels:
- bug
- title: ⚙️ Dependencies
labels:
- dependencies
- title: 👷 Changed
labels:
- maintenance
- title: 📖 Documentation
labels:
- documentation
- title: ⚙️ Dependencies
labels:
- dependencies
- title: Other changes
labels:
- "*"
21 changes: 0 additions & 21 deletions .github/workflows/auto-merge.yaml

This file was deleted.

5 changes: 2 additions & 3 deletions .github/workflows/cgl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
cgl:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -21,8 +21,7 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
# @todo switch back to composer-unused 0.8 once https://github.com/composer-unused/composer-unused/issues/444 is resolved
tools: composer:v2, composer-require-checker, composer-unused:0.7
tools: composer:v2, composer-require-checker, composer-unused
coverage: none

# Validation
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
outputs:
release-notes-url: ${{ steps.create-release.outputs.html_url }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down Expand Up @@ -41,7 +41,7 @@ jobs:
TYPO3_API_TOKEN: ${{ secrets.TYPO3_API_TOKEN }}
TYPO3_EXCLUDE_FROM_PACKAGING: packaging_exclude.php
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- typo3-version: "10.4"
php-version: "8.2"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -53,7 +53,7 @@ jobs:
name: Test coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -71,14 +71,14 @@ jobs:

# Run tests
- name: Run tests
run: composer test:ci
run: composer test:coverage

# Report coverage
- name: Fix coverage path
working-directory: .Build/log/coverage
run: sed -i 's#/home/runner/work/handlebars/handlebars#${{ github.workspace }}#g' clover.xml
- name: CodeClimate report
uses: paambaati/codeclimate-action@v3.2.0
uses: paambaati/codeclimate-action@v5.0.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ composer sca
composer test

# Run tests with code coverage
composer test:ci
composer test:coverage
```

The code coverage reports will be stored in `.Build/log/coverage`.
Expand Down
4 changes: 4 additions & 0 deletions Classes/Renderer/Template/TemplatePaths.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ protected function resolveTemplatePaths(): void
*/
protected function getTemplatePathsFromContainer(string $type): array
{
if ($this->container === null) {
return [];
}

$parameterName = 'handlebars.' . $type;
$templatePathsParameter = $this->container->getParameter($parameterName);

Expand Down
1 change: 1 addition & 0 deletions Documentation/Compatibility/ExtbaseControllers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ about the target extbase controller and actions supported by it.
tags:
- name: handlebars.processor
- name: handlebars.compatibility_layer
type: 'extbase_controller'
controller: 'Vendor\Extension\Controller\MyController'
actions: 'dummy'
Expand Down
2 changes: 1 addition & 1 deletion Documentation/Contributing/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ Run tests
composer test
# Run tests with code coverage
composer test:ci
composer test:coverage
The code coverage reports will be stored in :file:`.Build/log/coverage`.

Expand Down
2 changes: 1 addition & 1 deletion Documentation/Settings.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[general]
project = Handlebars
release = 0.7.22
release = 0.7.23
copyright = since 2020 by coding. powerful. systems. CPS GmbH
author = Elias Häußler

Expand Down
14 changes: 7 additions & 7 deletions Resources/Private/Libs/Build/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"ergebnis/composer-normalize": "^2.15",
"helmich/typo3-typoscript-lint": "^2.5 || ^3.0",
"jangregor/phpstan-prophecy": "^1.0",
"mikey179/vfsstream": "^1.6",
"mikey179/vfsstream": "^1.6.7",
"phpspec/prophecy-phpunit": "^2.0",
"phpstan/phpstan": "^1.9",
"phpstan/phpstan-phpunit": "^1.1",
Expand All @@ -43,7 +43,7 @@
"ssch/typo3-rector": "^1.0",
"symfony/event-dispatcher": "^4.4 || ^5.0",
"typo3/coding-standards": "^0.6.0 || ^0.7.0",
"typo3/testing-framework": "^6.15"
"typo3/testing-framework": "^6.15 || ^7.0.2"
},
"autoload": {
"psr-4": {
Expand Down Expand Up @@ -106,7 +106,7 @@
"@sca:php"
],
"sca:php": "phpstan analyse -c phpstan.neon",
"test": "phpunit -c phpunit.xml",
"test:ci": "phpunit -c phpunit.ci.xml"
"test": "@test:coverage --no-coverage",
"test:coverage": "phpunit -c phpunit.xml"
}
}
Loading

0 comments on commit 7dd00df

Please sign in to comment.