From 84ec733cded1461891419d866b57fe4d9ddb2ba7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Mon, 12 Oct 2020 20:30:01 +0200 Subject: [PATCH] Flag reports for easier identification --- .github/workflows/continuous-integration.yml | 64 ++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index b449f175c7f..1237b1ec9cd 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -14,6 +14,56 @@ on: - cron: "42 3 * * *" jobs: + phpunit-smoke-check: + name: "PHPUnit with SQLite" + runs-on: "ubuntu-20.04" + + strategy: + matrix: + php-version: + - "7.3" + - "7.4" + deps: + - "fixed" + include: + - deps: "low" + php-version: "7.3" + + steps: + - name: "Checkout" + uses: "actions/checkout@v2" + with: + fetch-depth: 2 + + - name: "Install PHP" + uses: "shivammathur/setup-php@v2" + with: + php-version: "${{ matrix.php-version }}" + coverage: "pcov" + + - name: "Cache dependencies installed with composer" + uses: "actions/cache@v2" + with: + path: "~/.composer/cache" + key: "php-${{ matrix.php-version }}-composer-locked-${{ hashFiles('composer.lock') }}" + restore-keys: "php-${{ matrix.php-version }}-composer-locked-" + + - name: "Install dependencies with composer" + run: "composer install --no-interaction --no-progress --no-suggest" + if: "${{ matrix.deps == 'fixed' }}" + + - name: "Install lowest possible dependencies with composer" + run: "composer update --no-interaction --no-progress --no-suggest --prefer-dist --prefer-lowest" + if: "${{ matrix.deps == 'low' }}" + + - name: "Run PHPUnit" + run: "vendor/bin/phpunit -c ci/github/phpunit/sqlite.xml --coverage-clover=coverage.xml" + + - name: "Upload Code Coverage" + uses: "codecov/codecov-action@v1" + with: + flags: "${{ github.job }},php-${{ matrix.php-version }}" + phpunit-oci8: name: "PHPUnit on OCI8" runs-on: "ubuntu-20.04" @@ -58,6 +108,8 @@ jobs: - name: "Upload Code Coverage" uses: "codecov/codecov-action@v1" + with: + flags: "${{ github.job }},php-${{ matrix.php-version }}" phpunit-pdo-oci: name: "PHPUnit on PDO_OCI" @@ -103,6 +155,8 @@ jobs: - name: "Upload Code Coverage" uses: "codecov/codecov-action@v1" + with: + flags: "${{ github.job }},php-${{ matrix.php-version }}" phpunit-postgres: name: "PHPUnit with PostgreSQL" @@ -163,6 +217,8 @@ jobs: - name: "Upload Code Coverage" uses: "codecov/codecov-action@v1" + with: + flags: "${{ github.job }},php-${{ matrix.php-version }},postgres-${{ matrix.postgres-version }}" phpunit-mariadb: name: "PHPUnit with MariaDB" @@ -225,6 +281,8 @@ jobs: - name: "Upload Code Coverage" uses: "codecov/codecov-action@v1" + with: + flags: "${{ github.job }},php-${{ matrix.php-version }},mariadb-${{ matrix.mariadb-version }},${{ matrix.extension }}" phpunit-mysql: name: "PHPUnit with MySQL" @@ -300,6 +358,8 @@ jobs: - name: "Upload Code Coverage" uses: "codecov/codecov-action@v1" + with: + flags: "${{ github.job }},php-${{ matrix.php-version }},mysql-${{ matrix.mysql-version }},${{ matrix.extension }}" phpunit-mssql: name: "PHPUnit with SQL Server" @@ -367,6 +427,8 @@ jobs: - name: "Upload Code Coverage" uses: "codecov/codecov-action@v1" + with: + flags: "${{ github.job }},php-${{ matrix.php-version }},${{ matrix.extension }}" phpunit-ibm-db2: name: "PHPUnit with IBM DB2" @@ -428,6 +490,8 @@ jobs: - name: "Upload Code Coverage" uses: "codecov/codecov-action@v1" + with: + flags: "${{ github.job }},php-${{ matrix.php-version }}" development-deps: name: "PHPUnit with SQLite and development dependencies"