-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RequestMapper]: Added GitHub workflows and update dependencies for s…
…upporting symfony 5.4 and 6.0 and Refactoring
- Loading branch information
1 parent
d6bfca7
commit 8ab36d9
Showing
2 changed files
with
94 additions
and
94 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,94 @@ | ||
#name: CI | ||
# | ||
#on: | ||
# push: | ||
# branches: [ main ] | ||
# | ||
# pull_request: | ||
# branches: [ main ] | ||
# | ||
# page_build: | ||
# release: | ||
# types: [ published, created, edited ] | ||
# | ||
#jobs: | ||
# build-test: | ||
# runs-on: self-hosted | ||
# | ||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# | ||
# - uses: php-actions/composer@v5 | ||
# | ||
# - name: PHPUnit Tests | ||
# uses: php-actions/phpunit@v2 | ||
# with: | ||
# php_extensions: xdebug | ||
# bootstrap: bootstrap.php | ||
# configuration: phpunit.xml.dist | ||
# args: --coverage-text | ||
|
||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
|
||
pull_request: | ||
branches: [ main ] | ||
|
||
page_build: | ||
release: | ||
types: [ published, created, edited ] | ||
|
||
jobs: | ||
build: | ||
runs-on: self-hosted | ||
|
||
strategy: | ||
matrix: | ||
php: | ||
- "8.0" | ||
- "8.1" | ||
include: | ||
- php-version: "8.0" | ||
composer-options: "--ignore-platform-reqs" | ||
|
||
- php-version: "8.1" | ||
composer-options: "--ignore-platform-reqs" | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: "${{ matrix.php }}" | ||
coverage: xdebug | ||
tools: pecl, phpunit, composer | ||
ini-values: post_max_size=256M | ||
|
||
- name: Setup Composer | ||
uses: ramsey/composer-install@v1 | ||
with: | ||
composer-options: "${{ matrix.composer-options }}" | ||
|
||
- name: Validate composer.json and composer.lock | ||
run: composer validate | ||
|
||
- name: Cache Composer packages | ||
id: composer-cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: vendor | ||
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-php- | ||
- name: Install dependencies | ||
if: steps.composer-cache.outputs.cache-hit != 'true' | ||
run: composer update --prefer-dist --no-progress | ||
|
||
- name: Unit Tests | ||
run: ./vendor/bin/phpunit --colors=always --verbose --configuration phpunit.xml.dist --log-junit var/tests/.phpunit.output.xml |
This file was deleted.
Oops, something went wrong.