Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,7 @@ Our project employs [GitHub Actions](https://github.com/features/actions) for co
| [`security-analysis.yml`](workflows/security-analysis.yml) | Checks for security issues. |
| [`shellcheck.yml`](workflows/shellcheck.yml) | Checks shell scripts. |
| [`static-analysis.yml`](workflows/static-analysis.yml) | Runs `psalm`. |
| [`testing.yml`](workflows/testing.yml) | Runs coverage, mutation and functional tests against SQLite |
| [`testing-mysql.yml`](workflows/testing.yml) | Runs functional tests against MySQL |
| [`testing-pgsql.yml`](workflows/testing.yml) | Runs functional tests against PostgreSQL |
| [`testing-sqlserver.yml`](workflows/testing.yml) | Runs functional tests against SQLServer (MSSQL) |
| [`testing.yml`](workflows/testing.yml) | Runs the tests on every driver through the shared Testo workflow. |

<br>

Expand Down
68 changes: 0 additions & 68 deletions .github/workflows/testing-mysql.yml

This file was deleted.

68 changes: 0 additions & 68 deletions .github/workflows/testing-pgsql.yml

This file was deleted.

79 changes: 0 additions & 79 deletions .github/workflows/testing-sqlserver.yml

This file was deleted.

93 changes: 13 additions & 80 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -1,93 +1,26 @@
---

name: 🧪 Tests

on: # yamllint disable-line rule:truthy
pull_request:
push:
branches:
- 1.x

name: 🔍 Continuous integration
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

permissions:
contents: read

jobs:
unit:
name: Unit · PHP ${{ matrix.php-version }} · ${{ matrix.dependencies }}
timeout-minutes: 4
runs-on: ${{ matrix.os }}
concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
group: unit-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ matrix.php-version }}-${{ matrix.dependencies }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
php-version:
- '8.2'
- '8.3'
- '8.4'
- '8.5'
dependencies:
- lowest
- highest
steps:
- name: 📦 Check out the codebase
uses: actions/checkout@v6
with:
persist-credentials: false

- name: 🛠️ Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: mbstring, pdo, pdo_sqlite
ini-values: error_reporting=E_ALL

- name: 🤖 Validate composer.json and composer.lock
run: composer validate --ansi --strict

- name: 📥 Install dependencies with composer
uses: ramsey/composer-install@v3
with:
dependency-versions: ${{ matrix.dependencies }}

- name: 🧪 Run tests (excluding driver-bound groups)
run: composer test:no-driver

code-coverage:
name: Code coverage
timeout-minutes: 4
runs-on: ubuntu-latest
concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
group: code-coverage-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
steps:
- name: 📦 Check out the codebase
uses: actions/checkout@v6
with:
persist-credentials: false

- name: 🛠️ Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
extensions: mbstring, pdo, pdo_sqlite
ini-values: error_reporting=E_ALL
coverage: xdebug

- name: 📥 Install dependencies with composer
uses: ramsey/composer-install@v3
with:
dependency-versions: highest

- name: 🧪 Collect code coverage with Testo
run: composer test:cc

- name: 📤 Upload code coverage report to Codecov
uses: codecov/codecov-action@v5
with:
files: runtime/clover.xml
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
testo:
name: Testo
uses: cycle/gh-actions/.github/workflows/testo.yml@master
with:
coverage: true
secrets: inherit

...
Loading
Loading