Skip to content

Commit

Permalink
Build with DBAL 3
Browse files Browse the repository at this point in the history
Making these jobs green will not result in a comprehensive result of the
features, but it is a good start, and having them should give a good
overview of what is left to do.
  • Loading branch information
greg0ire committed Aug 2, 2021
1 parent 8bb1454 commit 14fa43f
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,52 @@ env:
fail-fast: true

jobs:
phpunit-smoke-check-dbal-3:
name: "PHPUnit with SQLite"
runs-on: "ubuntu-20.04"

strategy:
matrix:
php-version:
- "8.0"

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 }}"
extensions: "pdo, pdo_sqlite"
coverage: "pcov"
ini-values: "zend.assertions=1"

- name: "Require DBAL 3"
run: "composer require doctrine/dbal ${{ matrix.dbal-version }} --no-update"
if: "${{ matrix.dbal-version != 'default' }}"

- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v1"

- name: "Run PHPUnit"
run: "vendor/bin/phpunit -c ci/github/phpunit/sqlite.xml --coverage-clover=coverage-no-cache.xml"
env:
ENABLE_SECOND_LEVEL_CACHE: 0

- name: "Run PHPUnit with Second Level Cache"
run: "vendor/bin/phpunit -c ci/github/phpunit/sqlite.xml --exclude-group performance,non-cacheable,locking_functional --coverage-clover=coverage-cache.xml"
env:
ENABLE_SECOND_LEVEL_CACHE: 1

- name: "Upload coverage file"
uses: "actions/upload-artifact@v2"
with:
name: "phpunit-sqlite-${{ matrix.php-version }}-dbal3-coverage"
path: "coverage*.xml"

phpunit-smoke-check:
name: "PHPUnit with SQLite"
runs-on: "ubuntu-20.04"
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ jobs:
matrix:
php-version:
- "8.0"
dbal-version:
- "default"
- "^3.0"

steps:
- name: "Checkout code"
Expand All @@ -29,6 +32,10 @@ jobs:
coverage: "none"
php-version: "${{ matrix.php-version }}"

- name: "Require DBAL 3"
run: "composer require doctrine/dbal ${{ matrix.dbal-version }} --no-update"
if: "${{ matrix.dbal-version != 'default' }}"

- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v1"
with:
Expand All @@ -45,6 +52,7 @@ jobs:
matrix:
php-version:
- "8.0"
- "^3.0"

steps:
- name: "Checkout code"
Expand All @@ -56,6 +64,10 @@ jobs:
coverage: "none"
php-version: "${{ matrix.php-version }}"

- name: "Require DBAL 3"
run: "composer require doctrine/dbal ${{ matrix.dbal-version }} --no-update"
if: "${{ matrix.dbal-version != 'default' }}"

- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v1"
with:
Expand Down

0 comments on commit 14fa43f

Please sign in to comment.