Skip to content

Commit

Permalink
chore(tests): cover PHP 8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaseberle committed Feb 6, 2024
1 parent de235ef commit 923bf1f
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 73 deletions.
56 changes: 28 additions & 28 deletions .github/workflows/acceptance-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,26 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: ["8.1", "8.2"]
browser: [chrome]
theme: [bootstrap3-banner, bootstrap3-modal, bootstrap4-modal, bootstrap5-modal, customtheme]
php-version: [ "8.1", "8.2", "8.3" ]
browser: [ chrome ]
theme: [ bootstrap3-banner, bootstrap3-modal, bootstrap4-modal, bootstrap5-modal, customtheme ]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
# Set PHP version
- run: |
sed -i -e 's/^php_version:.*/php_version: ${{ matrix.php-version }}/g' .ddev/config.yaml
- run: |
sed -i -e 's/^php_version:.*/php_version: ${{ matrix.php-version }}/g' .ddev/config.yaml
# Start ddev
- uses: ddev/github-action-setup-ddev@v1
- uses: ddev/github-action-setup-ddev@v1
# Setup tests
- run: ddev composer cookieman:${{ matrix.theme }}
- run: ddev composer cookieman:${{ matrix.theme }}
# Run tests
- run: ddev composer test:acceptance:${{ matrix.browser }}
- run: ddev composer test:acceptance:${{ matrix.browser }}
# Save acceptance reports
- uses: actions/upload-artifact@master
with:
name: ${{ matrix.browser }}-${{ matrix.theme }}-${{ matrix.php-version }}-ar
path: Build/AcceptanceReports
if: always()
- uses: actions/upload-artifact@master
with:
name: ${{ matrix.browser }}-${{ matrix.theme }}-${{ matrix.php-version }}-ar
path: Build/AcceptanceReports
if: always()

acceptance-tests-firefox:
runs-on: ubuntu-22.04
Expand All @@ -50,23 +50,23 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: ["8.1"]
browser: [firefox]
theme: [bootstrap3-banner, bootstrap3-modal, bootstrap4-modal, bootstrap5-modal, customtheme]
php-version: [ "8.3" ]
browser: [ firefox ]
theme: [ bootstrap3-banner, bootstrap3-modal, bootstrap4-modal, bootstrap5-modal, customtheme ]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
# Set PHP version
- run: |
sed -i -e 's/^php_version:.*/php_version: ${{ matrix.php-version }}/g' .ddev/config.yaml
- run: |
sed -i -e 's/^php_version:.*/php_version: ${{ matrix.php-version }}/g' .ddev/config.yaml
# Start ddev
- uses: ddev/github-action-setup-ddev@v1
- uses: ddev/github-action-setup-ddev@v1
# Setup tests
- run: ddev composer cookieman:${{ matrix.theme }}
- run: ddev composer cookieman:${{ matrix.theme }}
# Run tests
- run: ddev composer test:acceptance:${{ matrix.browser }}
- run: ddev composer test:acceptance:${{ matrix.browser }}
# Save acceptance reports
- uses: actions/upload-artifact@v3
with:
name: ${{ matrix.browser }}-${{ matrix.theme }}-${{ matrix.php-version }}-ar
path: Build/AcceptanceReports
if: always()
- uses: actions/upload-artifact@v3
with:
name: ${{ matrix.browser }}-${{ matrix.theme }}-${{ matrix.php-version }}-ar
path: Build/AcceptanceReports
if: always()
4 changes: 2 additions & 2 deletions .github/workflows/publish-ter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
TYPO3_API_TOKEN: ${{ secrets.TYPO3_API_TOKEN }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Check tag
run: |
Expand All @@ -32,7 +32,7 @@ jobs:
comment="${comment//'%'/'%25'}"
comment="${comment//$'\n'/'%0A'}"
comment="${comment//$'\r'/'%0D'}"
if [[ -z "${comment// }" ]]; then
echo ::set-output name=comment::Released version ${{ steps.get-version.outputs.version }} of ${{ env.TYPO3_EXTENSION_KEY }}
else
Expand Down
82 changes: 41 additions & 41 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
name: CGL & unit tests

on:
push:
branches:
- '**'
- '!l10n_*'
pull_request:
branches:
- '**'
- '!l10n_*'
push:
branches:
- '**'
- '!l10n_*'
pull_request:
branches:
- '**'
- '!l10n_*'

jobs:
unit-tests:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
php-version: ["8.1", "8.2"]
steps:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: intl, mbstring, json, zip, curl
tools: composer:v2
- run: composer update --no-interaction --no-progress
- run: composer show
- run: composer tests-for:ci
unit-tests-lowest:
runs-on: ubuntu-22.04
continue-on-error: true
strategy:
fail-fast: false
matrix:
php-version: ["8.1", "8.2"]
steps:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: intl, mbstring, json, zip, curl
tools: composer:v2
- run: composer update --no-interaction --prefer-lowest --no-progress
- run: composer show
- run: composer tests-for:ci
unit-tests:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
php-version: [ "8.1", "8.2", "8.3" ]
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: intl, mbstring, json, zip, curl
tools: composer:v2
- run: composer update --no-interaction --no-progress
- run: composer show
- run: composer tests-for:ci
unit-tests-lowest:
runs-on: ubuntu-22.04
continue-on-error: true
strategy:
fail-fast: false
matrix:
php-version: [ "8.1", "8.2", "8.3" ]
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: intl, mbstring, json, zip, curl
tools: composer:v2
- run: composer update --no-interaction --prefer-lowest --no-progress
- run: composer show
- run: composer tests-for:ci
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@
"dmind/cookieman-test": "@dev",
"dmind/cookieman-test-bootstrap3-banner": "@dev",
"friendsofphp/php-cs-fixer": "^3.49",
"helhum/typo3-console": "^8.0",
"helhum/typo3-console": "^8.1.1",
"phpspec/prophecy-phpunit": "^2.1",
"phpunit/phpunit": "^10.5",
"typo3/cms-install": "^12 || 12.*.x-dev || dev-main",
"typo3/cms-tstemplate": "^12 || 12.*.x-dev || dev-main",
"typo3/coding-standards": "0.7.1",
"typo3/tailor": "^1.5",
"typo3/testing-framework": "^7.0"
"typo3/testing-framework": "^7.0.4"
},
"config": {
"bin-dir": ".build/bin",
Expand Down

0 comments on commit 923bf1f

Please sign in to comment.