-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Refactors tests - Adds tests for typecast handler - Adds tests for macros - Adds tests for relations - Adds tests for STI - Adds tests for JTI * Apply fixes from StyleCI * Fixes CS * Added tests for cycle/orm v2 * Added schema constants via ConstantsInterface * Fixes tests for CycleORM v1 and v2. * Adds missed test * Renames discriminator column property name * Fixes tests Co-authored-by: Aleksei Gagarin <[email protected]>
- Loading branch information
1 parent
46b8abb
commit 2d14ab2
Showing
37 changed files
with
1,386 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: build-v2 | ||
|
||
on: | ||
push: | ||
pull_request: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
|
||
jobs: | ||
test: | ||
name: Build (${{matrix.php}}, ${{ matrix.os }}, ${{ matrix.stability }}) | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php: [ '8.0', '8.1' ] | ||
os: [ ubuntu-latest ] | ||
stability: [ prefer-lowest, prefer-stable ] | ||
|
||
steps: | ||
- name: Set Git To Use LF | ||
run: | | ||
git config --global core.autocrlf false | ||
git config --global core.eol lf | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
# Install PHP Dependencies | ||
- name: Setup PHP ${{ matrix.php }} | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
# PHP Extras | ||
extensions: pdo, pdo_mysql, pdo_sqlite, sockets | ||
coverage: pcov | ||
tools: pecl | ||
ini-values: "memory_limit=-1" | ||
- name: Validate Composer | ||
run: composer validate | ||
- name: Get Composer Cache Directory | ||
# Docs: <https://github.com/actions/cache/blob/master/examples.md#php---composer> | ||
id: composer-cache | ||
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | ||
- name: Restore Composer Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.composer-cache.outputs.dir }} | ||
key: ${{ runner.os }}-${{ matrix.php }}-${{ matrix.stability }}-composer-${{ hashFiles('**/composer.json') }} | ||
restore-keys: ${{ runner.os }}-${{ matrix.php }}-composer- | ||
|
||
- name: Install dependencies with composer | ||
if: matrix.php-version != '8.1' | ||
run: composer update --with cycle/orm:2.0.x-dev --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi | ||
|
||
- name: Install dependencies with composer php 8.1 | ||
if: matrix.php-version == '8.1' | ||
run: composer update --with cycle/orm:2.0.x-dev --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi --ignore-platform-reqs | ||
|
||
# Execution | ||
- name: Execute Tests | ||
run: vendor/bin/phpunit --coverage-clover=coverage.xml | ||
- name: Upload Coverage To Codecov | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
file: ./coverage.xml | ||
fail_ci_if_error: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,8 @@ risky: true | |
version: 7 | ||
|
||
finder: | ||
exclude: | ||
- "tests" | ||
not-name: | ||
- "*.stub.txt" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.