-
Notifications
You must be signed in to change notification settings - Fork 3
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
LDA
committed
Aug 12, 2024
1 parent
fe9d18f
commit 83c18db
Showing
10 changed files
with
4,468 additions
and
29 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,75 @@ | ||
name: "CI Tests" | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
tests: | ||
name: "PHP ${{ matrix.php }} ${{ matrix.composer-flags != '' && format(' - Composer {0}', matrix.composer-flags) || '' }}" | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php: | ||
- '7.4' | ||
- '8.0' | ||
- '8.1' | ||
- '8.2' | ||
- '8.3' | ||
composer-flags: | ||
- '--prefer-stable' | ||
include: | ||
# Lowest Deps | ||
- php: 7.4 | ||
composer-flags: '--prefer-stable --prefer-lowest' | ||
services: | ||
db: | ||
# Docker Hub image | ||
image: mariadb:10.11.8 | ||
ports: | ||
- 3306:3306 | ||
env: | ||
MARIADB_USER: test | ||
MARIADB_PASSWORD: foobar | ||
MARIADB_DATABASE: bookstore | ||
|
||
steps: | ||
- name: "Checkout" | ||
uses: "actions/checkout@v3" | ||
with: | ||
fetch-depth: 2 | ||
|
||
- name: "Cache Composer packages" | ||
uses: "actions/cache@v3" | ||
with: | ||
path: "~/.composer/cache" | ||
key: "php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}-flags-${{ matrix.composer-flags }}" | ||
restore-keys: "php-" | ||
|
||
- name: "Install PHP" | ||
uses: "shivammathur/setup-php@v2" | ||
with: | ||
php-version: "${{ matrix.php }}" | ||
tools: "composer:v2,flex" | ||
|
||
- name: "Set Composer stability" | ||
run: "composer config minimum-stability dev" | ||
|
||
- name: "Install dependencies" | ||
run: "composer update ${{ matrix.composer-flags }} --prefer-dist" | ||
|
||
- name: "Validate composer" | ||
run: "composer validate --strict --no-check-lock --no-check-all" | ||
|
||
- name: "Build database" | ||
run: | | ||
cp Tests/Fixtures/App/app/config/parameters.yml.dist Tests/Fixtures/App/app/config/parameters.yml | ||
composer install --dev | ||
./Tests/Fixtures/App/app/console propel:database:create | ||
./Tests/Fixtures/App/app/console propel:sql:insert --force | ||
./Tests/Fixtures/App/app/console propel:build | ||
- name: "Run PHPUnit Tests" | ||
run: "vendor/bin/phpunit" | ||
|
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
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 |
---|---|---|
|
@@ -26,15 +26,17 @@ | |
"email": "[email protected]" | ||
}, | ||
"require": { | ||
"php": ">=7.0.0", | ||
"symfony/symfony": "~3.4|~4.0|~5.0", | ||
"php": ">=7.4.0", | ||
"symfony/symfony": "~4.0|~5.0|~6.0", | ||
"symfony/monolog-bundle": "~2.4|~3.0", | ||
"propel/propel": "^2.0@alpha|2.0.x-dev", | ||
"csanquer/colibri-csv": "~1.2" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "~6.0|~7.0", | ||
"propel/propel-bundle": "4.0.x-dev" | ||
"phpunit/phpunit": "^9.6", | ||
"phpunit/php-code-coverage": "^9.2", | ||
"skyfox/propel-bundle": "^5.1|^6.0", | ||
"symfony/phpunit-bridge": "^7.1" | ||
}, | ||
"autoload": { | ||
"psr-0": { "Spyrit\\PropelDatagridBundle": "" } | ||
|
@@ -43,7 +45,7 @@ | |
"repositories": [ | ||
{ | ||
"type": "git", | ||
"url": "https://github.com/gharlan/PropelBundle" | ||
"url": "https://github.com/SkyFoxvn/PropelBundle" | ||
} | ||
] | ||
} |
Oops, something went wrong.