-
-
Notifications
You must be signed in to change notification settings - Fork 12
53 lines (52 loc) · 1.55 KB
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
name: Build PHP/TYPO3
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
php-versions: [ '8.1' ]
packages:
- typo3: '^11'
testingframework: '^7'
- typo3: '^12'
testingframework: 'dev-main'
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Setup PHP version
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring
tools: composer:v2.2
- name: Install composer dependencies
run: |
composer --version
composer require typo3/cms-core=${{ matrix.packages.typo3 }} typo3/cms-reports=${{ matrix.packages.typo3 }} "typo3/testing-framework:${{ matrix.packages.testingframework }}"
git checkout composer.json
- name: Run PHP linter
run: |
find . -name \*.php ! -path "./.Build/*" -exec php -l {} \;
- name: Run unit tests
run: |
.Build/bin/phpunit -c Build/UnitTests.xml
- 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";
.Build/bin/phpunit -c Build/FunctionalTests.xml