-
-
Notifications
You must be signed in to change notification settings - Fork 895
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
d500eb6
commit 185ae7b
Showing
1 changed file
with
48 additions
and
46 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 |
---|---|---|
|
@@ -21,7 +21,7 @@ jobs: | |
fail-fast: false | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
|
@@ -47,7 +47,7 @@ jobs: | |
SYMFONY_PHPUNIT_VERSION: '9.5' | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
|
@@ -58,9 +58,9 @@ jobs: | |
ini-values: memory_limit=-1 | ||
- name: Get composer cache directory | ||
id: composercache | ||
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | ||
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | ||
- name: Cache dependencies | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ steps.composercache.outputs.dir }} | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | ||
|
@@ -70,7 +70,7 @@ jobs: | |
- name: Install PHPUnit | ||
run: vendor/bin/simple-phpunit --version | ||
- name: Cache PHPStan results | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v3 | ||
with: | ||
path: /tmp/phpstan | ||
key: phpstan-php${{ matrix.php }}-${{ github.sha }} | ||
|
@@ -103,7 +103,7 @@ jobs: | |
fail-fast: false | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
|
@@ -114,9 +114,9 @@ jobs: | |
ini-values: memory_limit=-1 | ||
- name: Get composer cache directory | ||
id: composercache | ||
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | ||
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | ||
- name: Cache dependencies | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ steps.composercache.outputs.dir }} | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | ||
|
@@ -140,14 +140,14 @@ jobs: | |
fi | ||
- name: Upload test artifacts | ||
if: always() | ||
uses: actions/upload-artifact@v1 | ||
uses: actions/cache@v3 | ||
with: | ||
name: phpunit-logs-php${{ matrix.php }} | ||
path: build/logs/phpunit | ||
continue-on-error: true | ||
- name: Upload coverage results to Codecov | ||
if: matrix.coverage | ||
uses: codecov/codecov-action@v1 | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
name: phpunit-php${{ matrix.php }} | ||
flags: phpunit | ||
|
@@ -177,7 +177,7 @@ jobs: | |
fail-fast: false | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
|
@@ -188,9 +188,9 @@ jobs: | |
ini-values: memory_limit=-1 | ||
- name: Get composer cache directory | ||
id: composercache | ||
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | ||
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | ||
- name: Cache dependencies | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ steps.composercache.outputs.dir }} | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | ||
|
@@ -222,14 +222,14 @@ jobs: | |
continue-on-error: true | ||
- name: Upload test artifacts | ||
if: always() | ||
uses: actions/upload-artifact@v1 | ||
uses: actions/cache@v3 | ||
with: | ||
name: behat-logs-php${{ matrix.php }} | ||
path: build/logs/behat | ||
continue-on-error: true | ||
- name: Upload coverage results to Codecov | ||
if: matrix.coverage | ||
uses: codecov/codecov-action@v1 | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
name: behat-php${{ matrix.php }} | ||
flags: behat | ||
|
@@ -250,7 +250,7 @@ jobs: | |
tests/Fixtures/app/console api:openapi:export -o build/out/openapi/openapi_v3.json | ||
tests/Fixtures/app/console api:openapi:export --yaml -o build/out/openapi/openapi_v3.yaml | ||
- name: Setup node | ||
uses: actions/setup-node@v2 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '14' | ||
- name: Validate OpenAPI documents | ||
|
@@ -259,7 +259,7 @@ jobs: | |
npx git+https://github.com/soyuka/swagger-cli#master validate build/out/openapi/openapi_v3.yaml | ||
- name: Upload OpenAPI artifacts | ||
if: always() | ||
uses: actions/upload-artifact@v1 | ||
uses: actions/cache@v3 | ||
with: | ||
name: openapi-docs-php${{ matrix.php }} | ||
path: build/out/openapi | ||
|
@@ -280,7 +280,7 @@ jobs: | |
PGPASSWORD: apiplatformrocks | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
- name: Setup postgres | ||
run: | | ||
sudo systemctl start postgresql | ||
|
@@ -297,9 +297,9 @@ jobs: | |
ini-values: memory_limit=-1 | ||
- name: Get composer cache directory | ||
id: composercache | ||
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | ||
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | ||
- name: Cache dependencies | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ steps.composercache.outputs.dir }} | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | ||
|
@@ -336,7 +336,7 @@ jobs: | |
DATABASE_URL: mysql://root:[email protected]/api_platform_test | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
|
@@ -347,9 +347,9 @@ jobs: | |
ini-values: memory_limit=-1 | ||
- name: Get composer cache directory | ||
id: composercache | ||
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | ||
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | ||
- name: Cache dependencies | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ steps.composercache.outputs.dir }} | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | ||
|
@@ -377,7 +377,7 @@ jobs: | |
MONGODB_URL: mongodb://localhost:27017 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
- name: Check | ||
run: | | ||
sudo systemctl start mongod.service | ||
|
@@ -393,9 +393,9 @@ jobs: | |
run: echo "COVERAGE=1" >> $GITHUB_ENV | ||
- name: Get composer cache directory | ||
id: composercache | ||
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | ||
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | ||
- name: Cache dependencies | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ steps.composercache.outputs.dir }} | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | ||
|
@@ -426,13 +426,13 @@ jobs: | |
continue-on-error: true | ||
- name: Upload test artifacts | ||
if: always() | ||
uses: actions/upload-artifact@v1 | ||
uses: actions/cache@v3 | ||
with: | ||
name: behat-logs-php${{ matrix.php }} | ||
path: build/logs/behat | ||
continue-on-error: true | ||
- name: Upload coverage results to Codecov | ||
uses: codecov/codecov-action@v1 | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
name: behat-php${{ matrix.php }} | ||
flags: behat | ||
|
@@ -460,7 +460,7 @@ jobs: | |
APP_ENV: elasticsearch | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
- name: Configure sysctl limits | ||
run: | | ||
sudo swapoff -a | ||
|
@@ -481,9 +481,9 @@ jobs: | |
ini-values: memory_limit=-1 | ||
- name: Get composer cache directory | ||
id: composercache | ||
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | ||
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | ||
- name: Cache dependencies | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ steps.composercache.outputs.dir }} | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | ||
|
@@ -510,7 +510,7 @@ jobs: | |
SYMFONY_DEPRECATIONS_HELPER: max[total]=0 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
|
@@ -521,9 +521,9 @@ jobs: | |
ini-values: memory_limit=-1 | ||
- name: Get composer cache directory | ||
id: composercache | ||
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | ||
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | ||
- name: Cache dependencies | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ steps.composercache.outputs.dir }} | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | ||
|
@@ -551,7 +551,7 @@ jobs: | |
#SYMFONY_DEPRECATIONS_HELPER: max[direct]=0 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
|
@@ -562,11 +562,11 @@ jobs: | |
ini-values: memory_limit=-1 | ||
- name: Get composer cache directory | ||
id: composercache | ||
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | ||
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | ||
- name: Allow unstable project dependencies | ||
run: composer config minimum-stability dev | ||
- name: Cache dependencies | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ steps.composercache.outputs.dir }} | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | ||
|
@@ -593,7 +593,7 @@ jobs: | |
fail-fast: false | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
|
@@ -606,11 +606,11 @@ jobs: | |
run: sudo apt-get install moreutils | ||
- name: Get composer cache directory | ||
id: composercache | ||
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | ||
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | ||
- name: Allow unstable project dependencies | ||
run: composer config minimum-stability dev | ||
- name: Cache dependencies | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ steps.composercache.outputs.dir }} | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | ||
|
@@ -640,7 +640,7 @@ jobs: | |
DATABASE_URL: sqlite:///%kernel.project_dir%/var/data.db | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
uses: actions/checkout@v3 | ||
- name: Setup PHP with pre-release PECL extension | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
|
@@ -651,9 +651,10 @@ jobs: | |
ini-values: memory_limit=-1 | ||
- name: Get composer cache directory | ||
id: composercache | ||
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | ||
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | ||
shell: bash | ||
- name: Cache dependencies | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ steps.composercache.outputs.dir }} | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | ||
|
@@ -681,7 +682,7 @@ jobs: | |
DATABASE_URL: sqlite:///%kernel.project_dir%/var/data.db | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
uses: actions/checkout@v3 | ||
- name: Setup PHP with pre-release PECL extension | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
|
@@ -692,9 +693,10 @@ jobs: | |
ini-values: memory_limit=-1 | ||
- name: Get composer cache directory | ||
id: composercache | ||
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | ||
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | ||
shell: bash | ||
- name: Cache dependencies | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ steps.composercache.outputs.dir }} | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | ||
|