mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-10 04:16:13 +01:00
[CLEANUP] Fix yaml files (#70)
Co-authored-by: Łukasz Uznański <l.uznanski@macopedia.com>
This commit is contained in:
parent
37e1856d9c
commit
f34cfb701b
3 changed files with 174 additions and 191 deletions
276
.github/workflows/ci.yml
vendored
276
.github/workflows/ci.yml
vendored
|
@ -1,188 +1,166 @@
|
||||||
|
---
|
||||||
|
name: CI
|
||||||
on:
|
on:
|
||||||
- pull_request
|
- pull_request
|
||||||
- push
|
- push
|
||||||
|
|
||||||
name: CI
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
php-lint:
|
php-lint:
|
||||||
name: PHP linter
|
name: "PHP linter"
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v1
|
||||||
|
- name: "Install PHP"
|
||||||
|
uses: shivammathur/setup-php@v2
|
||||||
|
with:
|
||||||
|
php-version: "${{ matrix.php-version }}"
|
||||||
|
- name: "Run PHP lint"
|
||||||
|
run: "composer ci:php:lint"
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
php-version:
|
php-version:
|
||||||
- 7.2
|
- 7.2
|
||||||
- 7.3
|
- 7.3
|
||||||
- 7.4
|
- 7.4
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v1
|
|
||||||
|
|
||||||
- name: Install PHP
|
|
||||||
uses: shivammathur/setup-php@v2
|
|
||||||
with:
|
|
||||||
php-version: ${{ matrix.php-version }}
|
|
||||||
|
|
||||||
- name: Run PHP lint
|
|
||||||
run: composer ci:php:lint
|
|
||||||
|
|
||||||
code-quality:
|
code-quality:
|
||||||
name: Code quality checks
|
name: "Code quality checks"
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
-
|
||||||
|
name: Checkout
|
||||||
|
uses: actions/checkout@v1
|
||||||
|
-
|
||||||
|
name: "Install PHP"
|
||||||
|
uses: shivammathur/setup-php@v2
|
||||||
|
with:
|
||||||
|
php-version: "${{ matrix.php-version }}"
|
||||||
|
-
|
||||||
|
name: "Cache dependencies installed with composer"
|
||||||
|
uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
key: "php${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }}"
|
||||||
|
path: ~/.composer/cache
|
||||||
|
restore-keys: "php${{ matrix.php-version }}-composer-\n"
|
||||||
|
-
|
||||||
|
name: "Install Composer dependencies"
|
||||||
|
run: "composer install --no-progress"
|
||||||
|
-
|
||||||
|
name: "Run command"
|
||||||
|
run: "composer ci:${{ matrix.command }}"
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
command:
|
command:
|
||||||
- ts:lint
|
- "ts:lint"
|
||||||
- php:sniff
|
- "php:sniff"
|
||||||
php-version:
|
php-version:
|
||||||
- 7.3
|
- 7.3
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v1
|
|
||||||
|
|
||||||
- name: Install PHP
|
|
||||||
uses: shivammathur/setup-php@v2
|
|
||||||
with:
|
|
||||||
php-version: ${{ matrix.php-version }}
|
|
||||||
|
|
||||||
- name: "Cache dependencies installed with composer"
|
|
||||||
uses: actions/cache@v1
|
|
||||||
with:
|
|
||||||
path: ~/.composer/cache
|
|
||||||
key: php${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }}
|
|
||||||
restore-keys: |
|
|
||||||
php${{ matrix.php-version }}-composer-
|
|
||||||
|
|
||||||
- name: Install Composer dependencies
|
|
||||||
run: composer install --no-progress
|
|
||||||
|
|
||||||
- name: Run command
|
|
||||||
run: composer ci:${{ matrix.command }}
|
|
||||||
|
|
||||||
unit-tests:
|
unit-tests:
|
||||||
name: Unit tests
|
name: "Unit tests"
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
-
|
||||||
|
name: Checkout
|
||||||
|
uses: actions/checkout@v1
|
||||||
|
-
|
||||||
|
name: "Install PHP"
|
||||||
|
uses: shivammathur/setup-php@v2
|
||||||
|
with:
|
||||||
|
php-version: "${{ matrix.php-version }}"
|
||||||
|
-
|
||||||
|
name: "Cache dependencies installed with composer"
|
||||||
|
uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
key: "php${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }}"
|
||||||
|
path: ~/.composer/cache
|
||||||
|
restore-keys: "php${{ matrix.php-version }}-composer-\n"
|
||||||
|
-
|
||||||
|
env:
|
||||||
|
TYPO3: "${{ matrix.typo3-version }}"
|
||||||
|
name: "Install TYPO3 Core"
|
||||||
|
run: |
|
||||||
|
composer require typo3/minimal:"$TYPO3"
|
||||||
|
composer show
|
||||||
|
-
|
||||||
|
if: "matrix.composer-dependencies == 'lowest'"
|
||||||
|
name: "Install lowest dependencies with composer"
|
||||||
|
run: |
|
||||||
|
composer update --no-ansi --no-interaction --no-progress --no-suggest --prefer-lowest
|
||||||
|
composer show
|
||||||
|
-
|
||||||
|
if: "matrix.composer-dependencies == 'highest'"
|
||||||
|
name: "Install highest dependencies with composer"
|
||||||
|
run: |
|
||||||
|
composer update --no-ansi --no-interaction --no-progress --no-suggest
|
||||||
|
composer show
|
||||||
|
-
|
||||||
|
name: "Run unit tests"
|
||||||
|
run: "composer ci:tests:unit"
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
typo3-version:
|
|
||||||
- "^9.5"
|
|
||||||
#- "^10.4"
|
|
||||||
composer-dependencies:
|
composer-dependencies:
|
||||||
- highest
|
- highest
|
||||||
#- lowest
|
|
||||||
php-version:
|
php-version:
|
||||||
- 7.2
|
- 7.2
|
||||||
- 7.3
|
- 7.3
|
||||||
- 7.4
|
- 7.4
|
||||||
|
typo3-version:
|
||||||
steps:
|
- ^9.5
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v1
|
|
||||||
|
|
||||||
- name: Install PHP
|
|
||||||
uses: shivammathur/setup-php@v2
|
|
||||||
with:
|
|
||||||
php-version: ${{ matrix.php-version }}
|
|
||||||
|
|
||||||
- name: Cache dependencies installed with composer
|
|
||||||
uses: actions/cache@v1
|
|
||||||
with:
|
|
||||||
path: ~/.composer/cache
|
|
||||||
key: php${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }}
|
|
||||||
restore-keys: |
|
|
||||||
php${{ matrix.php-version }}-composer-
|
|
||||||
|
|
||||||
- name: Install TYPO3 Core
|
|
||||||
env:
|
|
||||||
TYPO3: ${{ matrix.typo3-version }}
|
|
||||||
run: |
|
|
||||||
composer require typo3/minimal:"$TYPO3"
|
|
||||||
composer show
|
|
||||||
|
|
||||||
- name: Install lowest dependencies with composer
|
|
||||||
if: matrix.composer-dependencies == 'lowest'
|
|
||||||
run: |
|
|
||||||
composer update --no-ansi --no-interaction --no-progress --no-suggest --prefer-lowest
|
|
||||||
composer show
|
|
||||||
|
|
||||||
- name: Install highest dependencies with composer
|
|
||||||
if: matrix.composer-dependencies == 'highest'
|
|
||||||
run: |
|
|
||||||
composer update --no-ansi --no-interaction --no-progress --no-suggest
|
|
||||||
composer show
|
|
||||||
|
|
||||||
- name: Run unit tests
|
|
||||||
run: composer ci:tests:unit
|
|
||||||
|
|
||||||
functional-tests:
|
functional-tests:
|
||||||
name: Functional tests
|
name: "Functional tests"
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
-
|
||||||
|
name: Checkout
|
||||||
|
uses: actions/checkout@v1
|
||||||
|
-
|
||||||
|
name: "Install PHP"
|
||||||
|
uses: shivammathur/setup-php@v2
|
||||||
|
with:
|
||||||
|
php-version: "${{ matrix.php-version }}"
|
||||||
|
-
|
||||||
|
name: "Cache dependencies installed with composer"
|
||||||
|
uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
key: "php${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }}"
|
||||||
|
path: ~/.composer/cache
|
||||||
|
restore-keys: "php${{ matrix.php-version }}-composer-\n"
|
||||||
|
-
|
||||||
|
env:
|
||||||
|
TYPO3: "${{ matrix.typo3-version }}"
|
||||||
|
name: "Install TYPO3 Core"
|
||||||
|
run: |
|
||||||
|
composer require typo3/minimal:"$TYPO3"
|
||||||
|
composer show
|
||||||
|
-
|
||||||
|
if: "matrix.composer-dependencies == 'lowest'"
|
||||||
|
name: "Install lowest dependencies with composer"
|
||||||
|
run: |
|
||||||
|
composer update --no-ansi --no-interaction --no-progress --no-suggest --prefer-lowest
|
||||||
|
composer show
|
||||||
|
-
|
||||||
|
if: "matrix.composer-dependencies == 'highest'"
|
||||||
|
name: "Install highest dependencies with composer"
|
||||||
|
run: |
|
||||||
|
composer update --no-ansi --no-interaction --no-progress --no-suggest
|
||||||
|
composer show
|
||||||
|
-
|
||||||
|
name: "Start MySQL"
|
||||||
|
run: "sudo /etc/init.d/mysql start"
|
||||||
|
-
|
||||||
|
name: "Run functional tests"
|
||||||
|
run: |-
|
||||||
|
export typo3DatabaseName="typo3";
|
||||||
|
export typo3DatabaseHost="127.0.0.1";
|
||||||
|
export typo3DatabaseUsername="root";
|
||||||
|
export typo3DatabasePassword="root";
|
||||||
|
composer ci:tests:functional
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
typo3-version:
|
|
||||||
- "^9.5"
|
|
||||||
#- "^10.4"
|
|
||||||
composer-dependencies:
|
composer-dependencies:
|
||||||
- highest
|
- highest
|
||||||
#- lowest
|
|
||||||
php-version:
|
php-version:
|
||||||
- 7.2
|
- 7.2
|
||||||
- 7.3
|
- 7.3
|
||||||
- 7.4
|
- 7.4
|
||||||
|
typo3-version:
|
||||||
steps:
|
- ^9.5
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v1
|
|
||||||
|
|
||||||
- name: Install PHP
|
|
||||||
uses: shivammathur/setup-php@v2
|
|
||||||
with:
|
|
||||||
php-version: ${{ matrix.php-version }}
|
|
||||||
|
|
||||||
- name: Cache dependencies installed with composer
|
|
||||||
uses: actions/cache@v1
|
|
||||||
with:
|
|
||||||
path: ~/.composer/cache
|
|
||||||
key: php${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }}
|
|
||||||
restore-keys: |
|
|
||||||
php${{ matrix.php-version }}-composer-
|
|
||||||
|
|
||||||
- name: Install TYPO3 Core
|
|
||||||
env:
|
|
||||||
TYPO3: ${{ matrix.typo3-version }}
|
|
||||||
run: |
|
|
||||||
composer require typo3/minimal:"$TYPO3"
|
|
||||||
composer show
|
|
||||||
|
|
||||||
- name: Install lowest dependencies with composer
|
|
||||||
if: matrix.composer-dependencies == 'lowest'
|
|
||||||
run: |
|
|
||||||
composer update --no-ansi --no-interaction --no-progress --no-suggest --prefer-lowest
|
|
||||||
composer show
|
|
||||||
|
|
||||||
- name: Install highest dependencies with composer
|
|
||||||
if: matrix.composer-dependencies == 'highest'
|
|
||||||
run: |
|
|
||||||
composer update --no-ansi --no-interaction --no-progress --no-suggest
|
|
||||||
composer show
|
|
||||||
|
|
||||||
- name: Start MySQL
|
|
||||||
run: sudo /etc/init.d/mysql start
|
|
||||||
|
|
||||||
- name: Run functional tests
|
|
||||||
run: |
|
|
||||||
export typo3DatabaseName="typo3";
|
|
||||||
export typo3DatabaseHost="127.0.0.1";
|
|
||||||
export typo3DatabaseUsername="root";
|
|
||||||
export typo3DatabasePassword="root";
|
|
||||||
composer ci:tests:functional
|
|
|
@ -1,16 +1,24 @@
|
||||||
|
---
|
||||||
sniffs:
|
sniffs:
|
||||||
- class: Indentation
|
-
|
||||||
|
class: Indentation
|
||||||
parameters:
|
parameters:
|
||||||
useSpaces: true
|
|
||||||
indentPerLevel: 4
|
|
||||||
indentConditions: true
|
indentConditions: true
|
||||||
- class: DeadCode
|
indentPerLevel: 4
|
||||||
- class: OperatorWhitespace
|
useSpaces: true
|
||||||
- class: RepeatingRValue
|
-
|
||||||
|
class: DeadCode
|
||||||
|
-
|
||||||
|
class: OperatorWhitespace
|
||||||
|
-
|
||||||
|
class: RepeatingRValue
|
||||||
disabled: true
|
disabled: true
|
||||||
- class: DuplicateAssignment
|
-
|
||||||
- class: EmptySection
|
class: DuplicateAssignment
|
||||||
|
-
|
||||||
|
class: EmptySection
|
||||||
disabled: true
|
disabled: true
|
||||||
- class: NestingConsistency
|
-
|
||||||
|
class: NestingConsistency
|
||||||
parameters:
|
parameters:
|
||||||
commonPathPrefixThreshold: 1
|
commonPathPrefixThreshold: 1
|
|
@ -1,41 +1,38 @@
|
||||||
# suite config
|
---
|
||||||
suites:
|
suites:
|
||||||
acceptance:
|
acceptance:
|
||||||
actor: AcceptanceTester
|
actor: AcceptanceTester
|
||||||
path: .
|
modules:
|
||||||
modules:
|
enabled:
|
||||||
enabled:
|
-
|
||||||
- WebDriver:
|
WebDriver:
|
||||||
url: https://www.oliverklee.de
|
browser: chrome
|
||||||
browser: chrome
|
url: "https://www.oliverklee.de"
|
||||||
- \Helper\Acceptance
|
- \Helper\Acceptance
|
||||||
|
path: "."
|
||||||
extensions:
|
extensions:
|
||||||
enabled: [Codeception\Extension\RunFailed]
|
enabled:
|
||||||
|
- Codeception\Extension\RunFailed
|
||||||
params:
|
|
||||||
- env
|
|
||||||
|
|
||||||
gherkin: []
|
gherkin: []
|
||||||
|
|
||||||
# additional paths
|
|
||||||
paths:
|
|
||||||
tests: Tests/Acceptance
|
|
||||||
output: .Build/public/typo3temp/var/tests/_output
|
|
||||||
data: .Build/public/typo3temp/var/tests/_data
|
|
||||||
support: Tests/Acceptance/_support
|
|
||||||
envs: .Build/public/typo3temp/var/tests/_envs
|
|
||||||
|
|
||||||
settings:
|
|
||||||
shuffle: false
|
|
||||||
lint: true
|
|
||||||
|
|
||||||
modules:
|
modules:
|
||||||
config:
|
config:
|
||||||
WebDriver:
|
WebDriver:
|
||||||
browser: chrome
|
browser: chrome
|
||||||
port: 9515 # ChromeDriver port
|
|
||||||
window_size: false
|
|
||||||
capabilities:
|
capabilities:
|
||||||
chromeOptions:
|
chromeOptions:
|
||||||
args: ["--headless", "--disable-gpu"]
|
args:
|
||||||
|
- "--headless"
|
||||||
|
- "--disable-gpu"
|
||||||
|
port: 9515
|
||||||
|
window_size: false
|
||||||
|
params:
|
||||||
|
- env
|
||||||
|
paths:
|
||||||
|
data: .Build/public/typo3temp/var/tests/_data
|
||||||
|
envs: .Build/public/typo3temp/var/tests/_envs
|
||||||
|
output: .Build/public/typo3temp/var/tests/_output
|
||||||
|
support: Tests/Acceptance/_support
|
||||||
|
tests: Tests/Acceptance
|
||||||
|
settings:
|
||||||
|
lint: true
|
||||||
|
shuffle: false
|
||||||
|
|
Loading…
Reference in a new issue