Skip to content

Commit

Permalink
Merge pull request #23 from studiometa/bugfix/twig-3.9-html_element
Browse files Browse the repository at this point in the history
[Bugfix] Fix the `html_element` tag with Twig 3.9.0
  • Loading branch information
titouanmathis authored Apr 18, 2024
2 parents 9e73108 + 17f3f84 commit e8da358
Show file tree
Hide file tree
Showing 4 changed files with 541 additions and 810 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ jobs:
fail-fast: false
matrix:
php-versions: ['7.4', '8.0', '8.1']
twig-versions: ['^2.10', '^3']
env:
PHP_VERSION: ${{ matrix.php-versions }}
TWIG_VERSION: ${{ matrix.twig-versions }}
steps:
- uses: actions/checkout@v2

Expand All @@ -88,15 +92,18 @@ jobs:
- name: Install Composer dependencies
run: composer install --no-progress --prefer-dist --optimize-autoloader

- name: Install Twig specific version
run: composer require twig/twig:${{ matrix.twig-versions }}

- name: Pest
run: php -v && XDEBUG_MODE=coverage ./vendor/bin/pest --coverage --coverage-clover='coverage.xml'

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
env_vars: PHP_VERSION,TWIG_VERSION
file: ./coverage.xml
flags: unittests
fail_ci_if_error: true
path_to_write_report: ./codecov_report.txt
fail_ci_if_error: false
verbose: true
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased]

### Fixed

- Fix a bug with Twig 3.9.0 ([#23](https://github.com/studiometa/twig-toolkit/pull/23))

## v1.3.5 (2023-07-13)

### Fixed
Expand Down
Loading

0 comments on commit e8da358

Please sign in to comment.