Skip to content

Commit

Permalink
Flag reports for easier identification
Browse files Browse the repository at this point in the history
  • Loading branch information
greg0ire committed Oct 15, 2020
1 parent 22505f8 commit 84ec733
Showing 1 changed file with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 84ec733

Please sign in to comment.