Skip to content

Commit

Permalink
Add CI test for v12 and v13
Browse files Browse the repository at this point in the history
  • Loading branch information
sypets committed Oct 27, 2024
1 parent 375e78e commit e29028f
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 8 deletions.
74 changes: 69 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@ on:
push:
pull_request:
schedule:
- cron: '42 5 * * *'
- cron: '42 5 * * 1'

jobs:
all_core_12:
static:
# only run jobs via scheduled workflow in main repo, not in forks
if: (github.event_name == 'schedule' && github.repository == 'sypets/brofix') || (github.event_name != 'schedule')
name: "all core-12"
name: "static"
runs-on: ubuntu-20.04
strategy:
# This prevents cancellation of matrix job runs, if one/two already failed and let the
# rest matrix jobs be be executed anyway.
fail-fast: false
fail-fast: true
matrix:
php: [ '8.1', '8.2' ]
php: [ '8.4' ]
minMax: [ 'composerInstallMax' ]
steps:
- name: "Checkout"
Expand Down Expand Up @@ -50,6 +50,32 @@ jobs:
if: always()
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s composerValidate


all_core_latest:
# only run jobs via scheduled workflow in main repo, not in forks
if: (github.event_name == 'schedule' && github.repository == 'sypets/brofix') || (github.event_name != 'schedule')
name: "all core-latest"
runs-on: ubuntu-20.04
strategy:
# This prevents cancellation of matrix job runs, if one/two already failed and let the
# rest matrix jobs be be executed anyway.
fail-fast: true
matrix:
php: [ '8.2', '8.4' ]
minMax: [ 'composerInstallMax' ]
steps:
- name: "Checkout"
uses: actions/checkout@v2

- name: "show php version"
run: php --version

#- name: "Set Typo3 core version"
# run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -t "^11.5" -s composerCoreVersion

- name: "Composer"
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s ${{ matrix.minMax }}

- name: "Lint PHP"
if: always()
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s lint
Expand All @@ -73,3 +99,41 @@ jobs:
- name: "Functional tests with postgres (nightly or pull_request)"
if: ${{ always() && (github.event_name == 'schedule' || github.event_name == 'pull_request' ) }}
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -d postgres -s functional

# v12
all_core_v12:
# only run jobs via scheduled workflow in main repo, not in forks
if: (github.event_name == 'schedule' && github.repository == 'sypets/brofix') || (github.event_name != 'schedule')
name: "all core-v12"
runs-on: ubuntu-20.04
strategy:
# This prevents cancellation of matrix job runs, if one/two already failed and let the
# rest matrix jobs be be executed anyway.
fail-fast: true
matrix:
php: [ '8.1', '8.4' ]
minMax: [ 'composerInstallMax' ]
steps:
- name: "Checkout"
uses: actions/checkout@v2

- name: "show php version"
run: php --version

- name: "Set Typo3 core version"
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -t "^12.4" -s composerCoreVersion

- name: "Composer"
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s ${{ matrix.minMax }}

- name: "phpstan"
if: ${{ always() && matrix.minMax == 'composerInstallMax' }}
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s phpstan -e "--error-format=github" -v

- name: "Unit tests"
if: always()
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s unit -v

- name: "Functional tests with mariadb"
if: always()
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -d mariadb -s functional -v
6 changes: 3 additions & 3 deletions Build/Scripts/runTests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@


# config
SUPPORTED_PHP_VERSIONS="8.1|8.2|8.3"
DEFAULT_PHP_VERSION="8.1"
SUPPORTED_PHP_VERSIONS="8.1|8.2|8.3|8.4"
DEFAULT_PHP_VERSION="8.4"
PHP_VERSION="${DEFAULT_PHP_VERSION}"
DEFAULT_PHP_PLATFORM_VERSION="8.2.15"
DEFAULT_PHP_PLATFORM_VERSION="8.4.0"


# Function to write a .env file in Build/testing-docker/local
Expand Down

0 comments on commit e29028f

Please sign in to comment.