-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Resolve PHP 8.4 deprecations - Apply Spiral Code Style - Reuse Cycle testing workflows
- Loading branch information
Showing
224 changed files
with
1,604 additions
and
1,286 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,21 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 4 | ||
trim_trailing_whitespace = true | ||
|
||
[*.{yml, yaml, sh, conf, neon*}] | ||
indent_size = 2 | ||
|
||
[*.http] | ||
end_of_line = crlf | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[Makefile] | ||
indent_style = tab |
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
/.github export-ignore | ||
/.editorconfig export-ignore | ||
/.gitattributes export-ignore | ||
/.gitignore export-ignore | ||
/tests export-ignore | ||
/.* export-ignore | ||
/tests export-ignore | ||
/*.xml export-ignore | ||
/*.yml export-ignore | ||
/*.lock export-ignore | ||
/*.dist export-ignore |
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,3 @@ | ||
# These are supported funding model platforms | ||
|
||
github: cycle |
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 |
---|---|---|
@@ -1,96 +1,16 @@ | ||
on: | ||
--- | ||
|
||
on: # yamllint disable-line rule:truthy | ||
push: | ||
branches: | ||
- master | ||
- '*.*' | ||
- '*.*.*' | ||
pull_request: null | ||
|
||
name: ci-mssql | ||
name: MSSQL | ||
|
||
jobs: | ||
tests: | ||
name: PHP ${{ matrix.php }}-mssql-${{ matrix.mssql }} | ||
|
||
env: | ||
key: cache | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- php: '8.0' | ||
extensions: pdo, pdo_sqlsrv | ||
mssql: 'server:2017-latest' | ||
- php: '8.0' | ||
extensions: pdo, pdo_sqlsrv | ||
mssql: 'server:2019-latest' | ||
odbc-version: 18 | ||
flag: "-C" | ||
- php: '8.1' | ||
extensions: pdo, pdo_sqlsrv | ||
mssql: 'server:2019-latest' | ||
odbc-version: 18 | ||
flag: "-C" | ||
- php: '8.2' | ||
extensions: pdo, pdo_sqlsrv | ||
mssql: 'server:2019-latest' | ||
odbc-version: 18 | ||
flag: "-C" | ||
- php: '8.3' | ||
extensions: pdo, pdo_sqlsrv | ||
mssql: 'server:2019-latest' | ||
odbc-version: 18 | ||
flag: "-C" | ||
|
||
services: | ||
mssql: | ||
image: mcr.microsoft.com/mssql/${{ matrix.mssql }} | ||
env: | ||
SA_PASSWORD: SSpaSS__1 | ||
ACCEPT_EULA: Y | ||
MSSQL_PID: Developer | ||
ports: | ||
- 11433:1433 | ||
options: --name=mssql --health-cmd="/opt/mssql-tools${{ matrix.odbc-version }}/bin/sqlcmd ${{ matrix.flag }} -S localhost -U SA -P 'SSpaSS__1' -Q 'SELECT 1'" --health-interval=10s --health-timeout=5s --health-retries=5 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Install PHP with extensions | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
extensions: ${{ matrix.extensions }} | ||
ini-values: date.timezone='UTC' | ||
tools: composer:v2, pecl | ||
|
||
- name: Determine composer cache directory on Linux | ||
run: echo "COMPOSER_CACHE_DIR=$(composer config cache-dir)" >> $GITHUB_ENV | ||
|
||
- name: Cache dependencies installed with composer | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ env.COMPOSER_CACHE_DIR }} | ||
key: php${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }} | ||
restore-keys: | | ||
php${{ matrix.php }}-composer- | ||
- name: Update composer | ||
run: composer self-update | ||
|
||
- name: Install dependencies with composer | ||
if: matrix.php != '8.3' | ||
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi | ||
|
||
- name: Install dependencies with composer php 8.3 | ||
if: matrix.php == '8.3' | ||
run: composer update --ignore-platform-reqs --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi | ||
phpunit: | ||
uses: cycle/gh-actions/.github/workflows/db-mssql.yml@master | ||
|
||
- name: Run tests with phpunit without coverage | ||
env: | ||
DB: sqlserver | ||
run: vendor/bin/phpunit tests/Schema/Driver/SQLServer --colors=always | ||
... |
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 |
---|---|---|
@@ -1,98 +1,16 @@ | ||
on: | ||
--- | ||
|
||
on: # yamllint disable-line rule:truthy | ||
push: | ||
branches: | ||
- master | ||
- '*.*' | ||
- '*.*.*' | ||
pull_request: null | ||
|
||
name: ci-mysql | ||
name: MySQL | ||
|
||
jobs: | ||
tests: | ||
name: PHP ${{ matrix.php-version }}-mysql-${{ matrix.mysql-version }} | ||
env: | ||
extensions: curl, intl, pdo, pdo_mysql | ||
key: cache-v1 | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
|
||
php-version: | ||
- "8.0" | ||
- "8.1" | ||
- "8.2" | ||
- "8.3" | ||
|
||
mysql-version: | ||
- "5.7" | ||
- "8.0" | ||
|
||
services: | ||
mysql: | ||
image: mysql:${{ matrix.mysql-version }} | ||
env: | ||
MYSQL_ROOT_PASSWORD: root | ||
MYSQL_DATABASE: spiral | ||
MYSQL_AUTHENTICATION_PLUGIN: mysql_native_password | ||
ports: | ||
- 13306:3306 | ||
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup cache environment | ||
id: cache-env | ||
uses: shivammathur/cache-extensions@v1 | ||
with: | ||
php-version: ${{ matrix.php-version }} | ||
extensions: ${{ env.extensions }} | ||
key: ${{ env.key }} | ||
|
||
- name: Cache extensions | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.cache-env.outputs.dir }} | ||
key: ${{ steps.cache-env.outputs.key }} | ||
restore-keys: ${{ steps.cache-env.outputs.key }} | ||
|
||
- name: Install PHP with extensions | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-version }} | ||
extensions: ${{ env.extensions }} | ||
ini-values: date.timezone='UTC' | ||
coverage: pcov | ||
|
||
- name: Determine composer cache directory | ||
if: matrix.os == 'ubuntu-latest' | ||
run: echo "COMPOSER_CACHE_DIR=$(composer config cache-dir)" >> $GITHUB_ENV | ||
|
||
- name: Cache dependencies installed with composer | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ env.COMPOSER_CACHE_DIR }} | ||
key: php${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('**/composer.json') }} | ||
restore-keys: | | ||
php${{ matrix.php-version }}-composer-${{ matrix.dependencies }}- | ||
- name: Install dependencies with composer | ||
if: matrix.php-version != '8.3' | ||
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi | ||
|
||
- name: Install dependencies with composer php 8.3 | ||
if: matrix.php-version == '8.3' | ||
run: composer update --ignore-platform-reqs --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi | ||
phpunit: | ||
uses: cycle/gh-actions/.github/workflows/db-mysql.yml@master | ||
|
||
- name: Run mysql tests with phpunit | ||
env: | ||
DB: mysql | ||
MYSQL: ${{ matrix.mysql-version }} | ||
run: vendor/bin/phpunit tests/Schema/Driver/MySQL --colors=always | ||
... |
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 |
---|---|---|
@@ -1,99 +1,16 @@ | ||
on: | ||
--- | ||
|
||
on: # yamllint disable-line rule:truthy | ||
push: | ||
branches: | ||
- master | ||
- '*.*' | ||
- '*.*.*' | ||
pull_request: null | ||
|
||
name: ci-pgsql | ||
name: Postgres | ||
|
||
jobs: | ||
tests: | ||
name: PHP ${{ matrix.php-version }}-pgsql-${{ matrix.pgsql-version }} | ||
env: | ||
extensions: curl, intl, pdo, pdo_pgsql | ||
key: cache-v1 | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
php-version: | ||
- "8.0" | ||
- "8.1" | ||
- "8.2" | ||
- "8.3" | ||
|
||
pgsql-version: | ||
- "10" | ||
- "11" | ||
- "12" | ||
- "13" | ||
|
||
services: | ||
postgres: | ||
image: postgres:${{ matrix.pgsql-version }} | ||
env: | ||
POSTGRES_USER: postgres | ||
POSTGRES_PASSWORD: postgres | ||
POSTGRES_DB: spiral | ||
ports: | ||
- 15432:5432 | ||
options: --name=postgres --health-cmd="pg_isready" --health-interval=10s --health-timeout=5s --health-retries=3 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup cache environment | ||
id: cache-env | ||
uses: shivammathur/cache-extensions@v1 | ||
with: | ||
php-version: ${{ matrix.php-version }} | ||
extensions: ${{ env.extensions }} | ||
key: ${{ env.key }} | ||
|
||
- name: Cache extensions | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.cache-env.outputs.dir }} | ||
key: ${{ steps.cache-env.outputs.key }} | ||
restore-keys: ${{ steps.cache-env.outputs.key }} | ||
|
||
- name: Install PHP with extensions | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-version }} | ||
extensions: ${{ env.extensions }} | ||
ini-values: date.timezone='UTC' | ||
coverage: pcov | ||
|
||
- name: Determine composer cache directory | ||
if: matrix.os == 'ubuntu-latest' | ||
run: echo "COMPOSER_CACHE_DIR=$(composer config cache-dir)" >> $GITHUB_ENV | ||
|
||
- name: Cache dependencies installed with composer | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ env.COMPOSER_CACHE_DIR }} | ||
key: php${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('**/composer.json') }} | ||
restore-keys: | | ||
php${{ matrix.php-version }}-composer-${{ matrix.dependencies }}- | ||
- name: Install dependencies with composer | ||
if: matrix.php-version != '8.3' | ||
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi | ||
|
||
- name: Install dependencies with composer php 8.3 | ||
if: matrix.php-version == '8.3' | ||
run: composer update --ignore-platform-reqs --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi | ||
phpunit: | ||
uses: cycle/gh-actions/.github/workflows/db-pgsql.yml@master | ||
|
||
- name: Run pgsql tests with phpunit | ||
env: | ||
DB: postgres | ||
POSTGRES: ${{ matrix.pgsql-version }} | ||
run: vendor/bin/phpunit tests/Schema/Driver/Postgres --colors=always | ||
... |
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,16 @@ | ||
--- | ||
|
||
on: # yamllint disable-line rule:truthy | ||
push: | ||
branches: | ||
- '*' | ||
|
||
name: Fix Code Style | ||
|
||
jobs: | ||
cs-fix: | ||
permissions: | ||
contents: write | ||
uses: spiral/gh-actions/.github/workflows/cs-fix.yml@master | ||
|
||
... |
Oops, something went wrong.