From 1eaff21ec7dbb801305df751d532a4cb90335e78 Mon Sep 17 00:00:00 2001 From: Stefan Froemken Date: Fri, 9 Aug 2024 00:05:23 +0200 Subject: [PATCH] Migrate all testing steps into just one step --- .github/workflows/typo3_13.yml | 65 +++++----------------------------- 1 file changed, 9 insertions(+), 56 deletions(-) diff --git a/.github/workflows/typo3_13.yml b/.github/workflows/typo3_13.yml index ee546dc..8d5afb6 100644 --- a/.github/workflows/typo3_13.yml +++ b/.github/workflows/typo3_13.yml @@ -3,11 +3,14 @@ name: tests on: [pull_request] jobs: - lint: - name: Linting - runs-on: self-hosted + testing: + name: Testing + + runs-on: ubuntu-latest + strategy: fail-fast: true + matrix: php: - '8.2' @@ -20,19 +23,6 @@ jobs: - name: 'Lint PHP' run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s lint - code-quality: - name: 'Code quality' - needs: lint - runs-on: self-hosted - strategy: - fail-fast: true - matrix: - php: - - '8.2' - steps: - - name: 'Checkout' - uses: actions/checkout@v4 - - name: 'Install testing system' run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s composerUpdate @@ -48,48 +38,11 @@ jobs: - name: 'phpstan' run: Build/Scripts/runTests.sh -n -p ${{ matrix.php }} -s phpstan - unit-tests: - name: 'Unit tests' - needs: code-quality - runs-on: self-hosted - strategy: - fail-fast: true - matrix: - php: - - '8.2' - - '8.3' - - steps: - - name: 'Checkout' - uses: actions/checkout@v4 - - - name: 'Install testing system' - run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s composerUpdate - - name: 'Execute unit tests' run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s unit - functional-tests: - name: Functional tests - needs: code-quality - runs-on: self-hosted - - strategy: - matrix: - php: - - '8.2' - - '8.3' - - vendor: - - mysql - - mariadb - - steps: - - name: 'Checkout' - uses: actions/checkout@v4 - - - name: 'Install testing system' - run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s composerUpdate + - name: 'Execute functional tests' + run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -d mysql -s functional - name: 'Execute functional tests' - run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -d ${{ matrix.vendor }} -s functional + run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -d mariadb -s functional