-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a03a21c
commit 390fe54
Showing
7 changed files
with
69 additions
and
18 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 |
---|---|---|
|
@@ -9,11 +9,11 @@ on: | |
|
||
jobs: | ||
test: | ||
name: 'PHP ${{ matrix.php-version }} (${{ matrix.dependency-versions }}, Lint ${{ matrix.lint }}, Coverage ${{ matrix.coverage }})' | ||
name: 'PHP ${{ matrix.php-version }} (${{ matrix.dependency-versions }}, Coverage ${{ matrix.coverage }})' | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
DATABASE_URL: mysql://root:[email protected]:3306/su_headless_test?serverVersion=5.7 | ||
DATABASE_URL: mysql://root:[email protected]:3306/su_content_test?serverVersion=5.7 | ||
DATABASE_CHARSET: utf8mb4 | ||
DATABASE_COLLATE: utf8mb4_unicode_ci | ||
|
||
|
@@ -22,26 +22,20 @@ jobs: | |
matrix: | ||
include: | ||
- php-version: '7.2' | ||
lint: false | ||
coverage: false | ||
dependency-versions: 'lowest' | ||
tools: 'composer:v1' | ||
env: | ||
SYMFONY_DEPRECATIONS_HELPER: disabled | ||
|
||
- php-version: '7.4' | ||
lint: true | ||
coverage: true | ||
dependency-versions: 'highest' | ||
tools: 'composer:v2' | ||
env: | ||
SYMFONY_DEPRECATIONS_HELPER: weak | ||
|
||
- php-version: '8.0' | ||
lint: false | ||
coverage: false | ||
dependency-versions: 'highest' | ||
tools: 'composer:v2' | ||
env: | ||
SYMFONY_DEPRECATIONS_HELPER: weak | ||
|
||
|
@@ -64,7 +58,6 @@ jobs: | |
php-version: ${{ matrix.php-version }} | ||
extensions: ctype, iconv, mysql | ||
coverage: pcov | ||
tools: ${{ matrix.tools }} | ||
|
||
- name: Install composer dependencies | ||
uses: ramsey/composer-install@v1 | ||
|
@@ -75,10 +68,6 @@ jobs: | |
- name: Bootstrap test environment | ||
run: composer bootstrap-test-environment | ||
|
||
- name: Lint Code | ||
if: ${{ matrix.lint }} | ||
run: composer lint | ||
|
||
- name: Execute test cases | ||
if: matrix.coverage == false | ||
run: composer test | ||
|
@@ -98,3 +87,25 @@ jobs: | |
- name: Check code coverage | ||
if: ${{ matrix.coverage }} | ||
run: composer check-coverage | ||
|
||
lint: | ||
name: "PHP Lint" | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout project | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install and configure PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 8.0 | ||
extensions: ctype, iconv, mysql | ||
|
||
- name: Install composer dependencies | ||
uses: ramsey/composer-install@v1 | ||
with: | ||
dependency-versions: highest | ||
|
||
- name: Lint Code | ||
run: composer lint |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
APP_ENV=test | ||
DATABASE_URL=mysql://root:@127.0.0.1:3306/su_content_test | ||
DATABASE_URL=mysql://root:@127.0.0.1:3306/su_content_test?serverVersion=5.7 | ||
DATABASE_CHARSET=utf8mb4 | ||
DATABASE_COLLATE=utf8mb4_unicode_ci |
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 +1 @@ | ||
DATABASE_URL=mysql://root:@127.0.0.1:3306/su_content_test_dev | ||
DATABASE_URL=mysql://root:@127.0.0.1:3306/su_content_test_dev?serverVersion=5.7 |
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,27 @@ | ||
parameters: | ||
ignoreErrors: | ||
- | ||
message: "#^Method Sulu\\\\Bundle\\\\ContentBundle\\\\Content\\\\Infrastructure\\\\Doctrine\\\\MetadataLoader\\:\\:addField\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" | ||
count: 1 | ||
path: Content/Infrastructure/Doctrine/MetadataLoader.php | ||
|
||
- | ||
message: "#^Method Sulu\\\\Bundle\\\\ContentBundle\\\\Content\\\\Infrastructure\\\\Doctrine\\\\MetadataLoader\\:\\:addManyToMany\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" | ||
count: 1 | ||
path: Content/Infrastructure/Doctrine/MetadataLoader.php | ||
|
||
- | ||
message: "#^Method Sulu\\\\Bundle\\\\ContentBundle\\\\Content\\\\Infrastructure\\\\Doctrine\\\\MetadataLoader\\:\\:addManyToOne\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" | ||
count: 1 | ||
path: Content/Infrastructure/Doctrine/MetadataLoader.php | ||
|
||
- | ||
message: "#^Method Sulu\\\\Bundle\\\\ContentBundle\\\\Content\\\\Infrastructure\\\\Doctrine\\\\MetadataLoader\\:\\:getRelationTableName\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" | ||
count: 1 | ||
path: Content/Infrastructure/Doctrine/MetadataLoader.php | ||
|
||
- | ||
message: "#^Property Sulu\\\\Bundle\\\\ContentBundle\\\\Content\\\\Infrastructure\\\\Sulu\\\\SmartContent\\\\Repository\\\\ContentDataProviderRepository\\:\\:\\$contentRichEntityClassMetadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata does not specify its types\\: T$#" | ||
count: 1 | ||
path: Content/Infrastructure/Sulu/SmartContent/Repository/ContentDataProviderRepository.php | ||
|
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