Skip to content

Commit

Permalink
[TASK] Add gihub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Riiiad committed Oct 1, 2024
1 parent f15cf30 commit 22c07cf
Showing 1 changed file with 87 additions and 0 deletions.
87 changes: 87 additions & 0 deletions .github/workflows/testcore11.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
name: tests core 11

on:
pull_request:

jobs:
code-quality:
name: "code quality with core v11"
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
php-version: [ '7.4', '8.0', '8.1']
steps:
- name: "Checkout"
uses: actions/checkout@v4

# @todo this should be removed after upgrade of Build/Scripts/runTests.sh not using docker-compose
- name: "Link docker compose"
run: |
echo "#!/usr/bin/env bash" > /usr/local/bin/docker-compose
echo "" >> /usr/local/bin/docker-compose
echo "docker compose \"\$@\"" >> /usr/local/bin/docker-compose
chmod a+x /usr/local/bin/docker-compose
- name: "Prepare dependencies for TYPO3 v11"
run: "Build/Scripts/runTests.sh -t 11 -p ${{ matrix.php-version }} -s composerUpdate"

- name: "Run TypoScript lint"
run: "Build/Scripts/runTests.sh -t 11 -p ${{ matrix.php-version }} -s lintTypoScript"

- name: "Run PHP lint"
run: "Build/Scripts/runTests.sh -t 11 -p ${{ matrix.php-version }} -s lintPhp"

- name: "Validate CGL"
run: "Build/Scripts/runTests.sh -t 11 -p ${{ matrix.php-version }} -s cgl"

- name: "Ensure UTF-8 files do not contain BOM"
run: "Build/Scripts/runTests.sh -t 11 -p ${{ matrix.php-version }} -s checkBom"

# - name: "Test .rst files for integrity"
# run: "Build/Scripts/runTests.sh -t 11 -p ${{ matrix.php-version }} -s checkRst"

- name: "Find duplicate exception codes"
run: "Build/Scripts/runTests.sh -t 11 -p ${{ matrix.php-version }} -s checkExceptionCodes"

- name: "Run PHPStan"
run: "Build/Scripts/runTests.sh -t 11 -p ${{ matrix.php-version }} -s phpstan"

# testsuite:
# name: all tests with core v11
# runs-on: ubuntu-22.04
# needs: code-quality
# strategy:
# fail-fast: false
# matrix:
# php-version: [ '8.0', '8.1', '8.2' ]
# steps:
# - name: "Checkout"
# uses: actions/checkout@v3

# - name: "Prepare dependencies for TYPO3 v11"
# run: "Build/Scripts/runTests.sh -t 11 -p ${{ matrix.php-version }} -s composerUpdate"

# # - name: "Unit"
# # run: "Build/Scripts/runTests.sh -t 11 -p ${{ matrix.php-version }} -s unit"

# - name: "Functional SQLite"
# run: "Build/Scripts/runTests.sh -t 11 -p ${{ matrix.php-version }} -s functional -d sqlite"

# - name: "Functional MariaDB 10.5 mysqli"
# run: "Build/Scripts/runTests.sh -t 11 -p ${{ matrix.php-version }} -s functional -d mariadb -a mysqli"

# - name: "Functional MariaDB 10.5 pdo_mysql"
# run: "Build/Scripts/runTests.sh -t 11 -p ${{ matrix.php-version }} -s functional -d mariadb -a pdo_mysql"

# - name: "Functional MySQL 8.0 mysqli"
# run: "Build/Scripts/runTests.sh -t 11 -p ${{ matrix.php-version }} -s functional -d mariadb -a mysqli"

# - name: "Functional MySQL 8.0 pdo_mysql"
# run: "Build/Scripts/runTests.sh -t 11 -p ${{ matrix.php-version }} -s functional -d mariadb -a pdo_mysql"

# - name: "Functional PostgresSQL 10"
# # v11 postgres functional disabled with PHP 8.2 since https://github.com/doctrine/dbal/commit/73eec6d882b99e1e2d2d937accca89c1bd91b2d7
# # is not fixed in doctrine core v11 doctrine 2.13.9
# if: ${{ matrix.php <= '8.1' }}
# run: "Build/Scripts/runTests.sh -t 11 -p ${{ matrix.php-version }} -s functional -d postgres"

0 comments on commit 22c07cf

Please sign in to comment.