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
Showing
3 changed files
with
151 additions
and
137 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
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,61 +1,61 @@ | ||
name: Symfony 5 | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
symfony-tests: | ||
runs-on: ${{ matrix.operating-system }} | ||
name: PHP ${{ matrix.php }} and Symfony ${{ matrix.symfony }} on ${{ matrix.operating-system }} | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
operating-system: [ ubuntu-latest, windows-latest, macos-latest ] | ||
php: [ '7.4', '8.0', '8.1' ] | ||
symfony: [ '5.1.*', '5.2.*', '5.3.*', '5.4.*' ] | ||
|
||
steps: | ||
- uses: actions/checkout@master | ||
|
||
- name: Setup PHP ${{ matrix.php }} | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
tools: flex | ||
|
||
- name: Composer get cache directory | ||
id: composer-cache | ||
run: | | ||
echo "::set-output name=dir::$(composer config cache-files-dir)" | ||
- name: Composer cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.composer-cache.outputs.dir }} | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-composer- | ||
- name: Download dependencies | ||
env: | ||
SYMFONY_REQUIRE: ${{ matrix.symfony }} | ||
uses: ramsey/composer-install@v1 | ||
with: | ||
composer-options: "--no-progress --prefer-dist --optimize-autoloader" | ||
|
||
- name: Test symfony security | ||
if: runner.os == 'Linux' | ||
uses: symfonycorp/security-checker-action@v2 | ||
with: | ||
disable-exit-code: 1 | ||
id: security-check | ||
- name: Display the vulnerabilities as JSON | ||
if: runner.os == 'Linux' | ||
run: echo ${{ steps.security-check.outputs.vulns }} | ||
|
||
- name: Run test suite | ||
env: | ||
SYMFONY_DEPRECATIONS_HELPER: disabled | ||
run: ./vendor/bin/phpunit | ||
#name: Symfony 5 | ||
# | ||
#on: | ||
# push: | ||
# branches: [ master ] | ||
# pull_request: | ||
# branches: [ master ] | ||
# | ||
#jobs: | ||
# symfony-tests: | ||
# runs-on: ${{ matrix.operating-system }} | ||
# name: PHP ${{ matrix.php }} and Symfony ${{ matrix.symfony }} on ${{ matrix.operating-system }} | ||
# strategy: | ||
# fail-fast: true | ||
# matrix: | ||
# operating-system: [ ubuntu-latest, windows-latest, macos-latest ] | ||
# php: [ '7.4', '8.0', '8.1' ] | ||
# symfony: [ '5.1.*', '5.2.*', '5.3.*', '5.4.*' ] | ||
# | ||
# steps: | ||
# - uses: actions/checkout@master | ||
# | ||
# - name: Setup PHP ${{ matrix.php }} | ||
# uses: shivammathur/setup-php@v2 | ||
# with: | ||
# php-version: ${{ matrix.php }} | ||
# tools: flex | ||
# | ||
# - name: Composer get cache directory | ||
# id: composer-cache | ||
# run: | | ||
# echo "::set-output name=dir::$(composer config cache-files-dir)" | ||
# - name: Composer cache | ||
# uses: actions/cache@v2 | ||
# with: | ||
# path: ${{ steps.composer-cache.outputs.dir }} | ||
# key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | ||
# restore-keys: | | ||
# ${{ runner.os }}-composer- | ||
# | ||
# - name: Download dependencies | ||
# env: | ||
# SYMFONY_REQUIRE: ${{ matrix.symfony }} | ||
# uses: ramsey/composer-install@v1 | ||
# with: | ||
# composer-options: "--no-progress --prefer-dist --optimize-autoloader" | ||
# | ||
# - name: Test symfony security | ||
# if: runner.os == 'Linux' | ||
# uses: symfonycorp/security-checker-action@v2 | ||
# with: | ||
# disable-exit-code: 1 | ||
# id: security-check | ||
# - name: Display the vulnerabilities as JSON | ||
# if: runner.os == 'Linux' | ||
# run: echo ${{ steps.security-check.outputs.vulns }} | ||
# | ||
# - name: Run test suite | ||
# env: | ||
# SYMFONY_DEPRECATIONS_HELPER: disabled | ||
# 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,62 @@ | ||
name: Symfony 6 | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
symfony-tests: | ||
runs-on: ${{ matrix.operating-system }} | ||
name: PHP ${{ matrix.php }} and Symfony ${{ matrix.symfony }} on ${{ matrix.operating-system }} | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
operating-system: [ ubuntu-latest, windows-latest, macos-latest ] | ||
php: [ '8.1' ] | ||
symfony: [ '6.0.*' ] | ||
|
||
steps: | ||
- uses: actions/checkout@master | ||
|
||
- name: Setup PHP ${{ matrix.php }} | ||
uses: shivammathur/setup-php@2cb9b829437ee246e9b3cac53555a39208ca6d28 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
tools: flex | ||
|
||
- name: Composer get cache directory | ||
id: composer-cache | ||
run: | | ||
echo "::set-output name=dir::$(composer config cache-files-dir)" | ||
- name: Composer cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ steps.composer-cache.outputs.dir }} | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-composer- | ||
- name: Download dependencies | ||
env: | ||
SYMFONY_REQUIRE: ${{ matrix.symfony }} | ||
uses: ramsey/composer-install@v1 | ||
with: | ||
composer-options: "--no-progress --prefer-dist --optimize-autoloader" | ||
|
||
- name: Test symfony security | ||
if: runner.os == 'Linux' | ||
uses: symfonycorp/security-checker-action@v2 | ||
with: | ||
disable-exit-code: 1 | ||
id: security-check | ||
- name: Display the vulnerabilities as JSON | ||
if: runner.os == 'Linux' | ||
run: echo ${{ steps.security-check.outputs.vulns }} | ||
|
||
- name: Run test suite | ||
env: | ||
SYMFONY_DEPRECATIONS_HELPER: disabled | ||
run: ./vendor/bin/phpunit | ||
#name: Symfony 6 | ||
# | ||
#on: | ||
# push: | ||
# branches: [ master ] | ||
# pull_request: | ||
# branches: [ master ] | ||
# | ||
#jobs: | ||
# symfony-tests: | ||
# runs-on: ${{ matrix.operating-system }} | ||
# name: PHP ${{ matrix.php }} and Symfony ${{ matrix.symfony }} on ${{ matrix.operating-system }} | ||
# strategy: | ||
# fail-fast: true | ||
# matrix: | ||
# operating-system: [ ubuntu-latest, windows-latest, macos-latest ] | ||
# php: [ '8.1' ] | ||
# symfony: [ '6.0.*' ] | ||
# | ||
# steps: | ||
# - uses: actions/checkout@master | ||
# | ||
# - name: Setup PHP ${{ matrix.php }} | ||
# uses: shivammathur/setup-php@2cb9b829437ee246e9b3cac53555a39208ca6d28 | ||
# with: | ||
# php-version: ${{ matrix.php }} | ||
# tools: flex | ||
# | ||
# - name: Composer get cache directory | ||
# id: composer-cache | ||
# run: | | ||
# echo "::set-output name=dir::$(composer config cache-files-dir)" | ||
# | ||
# - name: Composer cache | ||
# uses: actions/cache@v3 | ||
# with: | ||
# path: ${{ steps.composer-cache.outputs.dir }} | ||
# key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | ||
# restore-keys: | | ||
# ${{ runner.os }}-composer- | ||
# | ||
# - name: Download dependencies | ||
# env: | ||
# SYMFONY_REQUIRE: ${{ matrix.symfony }} | ||
# uses: ramsey/composer-install@v1 | ||
# with: | ||
# composer-options: "--no-progress --prefer-dist --optimize-autoloader" | ||
# | ||
# - name: Test symfony security | ||
# if: runner.os == 'Linux' | ||
# uses: symfonycorp/security-checker-action@v2 | ||
# with: | ||
# disable-exit-code: 1 | ||
# id: security-check | ||
# - name: Display the vulnerabilities as JSON | ||
# if: runner.os == 'Linux' | ||
# run: echo ${{ steps.security-check.outputs.vulns }} | ||
# | ||
# - name: Run test suite | ||
# env: | ||
# SYMFONY_DEPRECATIONS_HELPER: disabled | ||
# run: ./vendor/bin/phpunit |