Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
/.github/ export-ignore
/Build/ export-ignore
/Tests/ export-ignore
/.gitattributes export-ignore
/.github/ export-ignore
/.gitignore export-ignore
/.phplint.yml export-ignore
/.php_cs.cache
/Todos.md
80 changes: 80 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: CI

on:
push:
branches: [ master ]
tags: [ '*' ]
pull_request:

permissions:
contents: read

jobs:
composer-validate:
name: Composer validate
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
coverage: none
- run: composer validate --strict --no-check-lock

cgl:
name: Coding guidelines
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
coverage: none
- run: composer update --no-progress --prefer-dist
- run: composer ci:cgl

tests:
name: TYPO3 ${{ matrix.typo3 }} / PHP ${{ matrix.php }} (${{ matrix.dependencies }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
typo3: [ '^14.0' ]
php: [ '8.2', '8.3', '8.4', '8.5' ]
dependencies: [ 'highest' ]
include:
- typo3: '^14.0'
php: '8.2'
dependencies: 'lowest'
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
tools: composer:v2
- name: Lint PHP
run: composer ci:lint
- name: Install dependencies
run: |
composer require --no-update --no-progress \
typo3/cms-backend:${{ matrix.typo3 }} \
typo3/cms-core:${{ matrix.typo3 }} \
typo3/cms-fluid:${{ matrix.typo3 }} \
typo3/cms-frontend:${{ matrix.typo3 }}
composer update --no-progress --prefer-dist ${{ matrix.dependencies == 'lowest' && '--prefer-lowest' || '' }}
- name: Unit tests
run: composer ci:tests:unit

release-version:
name: Tag matches ext_emconf version
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Compare tag with ext_emconf.php
run: |
TAG="${GITHUB_REF_NAME#v}"
EMCONF=$(sed -n "s/.*'version' => '\([^']*\)'.*/\1/p" ext_emconf.php)
echo "tag=$TAG ext_emconf=$EMCONF"
test "$TAG" = "$EMCONF"
30 changes: 0 additions & 30 deletions .github/workflows/core12.yml

This file was deleted.

12 changes: 5 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
Todos.md
.php_cs.cache
/Documentation-GENERATED-temp
.build/
Build/.phpunit.result.cache
composer.lock
/.Build/
/.php-cs-fixer.cache
/var
/.phpunit.cache/
/Documentation-GENERATED-temp/
/composer.lock
/var/
Loading
Loading