Skip to content

Commit 2e01389

Browse files
committed
Update action workflows
1 parent 7c2344a commit 2e01389

File tree

4 files changed

+13
-16
lines changed

4 files changed

+13
-16
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-20.04
1212
steps:
1313
- name: Checkout code
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v3
1515

1616
- name: Create release
1717
uses: actions/create-release@latest

.github/workflows/test-coding-standards.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333

3434
steps:
3535
- name: Checkout repository
36-
uses: actions/checkout@v2
36+
uses: actions/checkout@v3
3737

3838
- name: Setup PHP
3939
uses: shivammathur/setup-php@v2
@@ -43,13 +43,12 @@ jobs:
4343
coverage: none
4444

4545
- name: Get composer cache directory
46-
id: composer-cache
47-
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
46+
run: echo "COMPOSER_CACHE_FILES_DIR=$(composer config cache-files-dir)" >> $GITHUB_ENV
4847

4948
- name: Cache composer dependencies
50-
uses: actions/cache@v2
49+
uses: actions/cache@v3
5150
with:
52-
path: ${{ steps.composer-cache.outputs.dir }}
51+
path: ${{ env.COMPOSER_CACHE_FILES_DIR }}
5352
key: composer-${{ runner.os }}-${{ matrix.php-version }}-${{ hashFiles('**/composer.*') }}
5453
restore-keys: |
5554
composer-${{ runner.os }}-${{ matrix.php-version }}-

.github/workflows/test-phpstan.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333

3434
steps:
3535
- name: Checkout repository
36-
uses: actions/checkout@v2
36+
uses: actions/checkout@v3
3737

3838
- name: Setup PHP
3939
uses: shivammathur/setup-php@v2
@@ -43,13 +43,12 @@ jobs:
4343
coverage: none
4444

4545
- name: Get composer cache directory
46-
id: composer-cache
47-
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
46+
run: echo "COMPOSER_CACHE_FILES_DIR=$(composer config cache-files-dir)" >> $GITHUB_ENV
4847

4948
- name: Cache composer dependencies
50-
uses: actions/cache@v2
49+
uses: actions/cache@v3
5150
with:
52-
path: ${{ steps.composer-cache.outputs.dir }}
51+
path: ${{ env.COMPOSER_CACHE_FILES_DIR }}
5352
key: composer-${{ runner.os }}-${{ matrix.php-version }}-${{ hashFiles('**/composer.*') }}
5453
restore-keys: |
5554
composer-${{ runner.os }}-${{ matrix.php-version }}-
@@ -60,7 +59,7 @@ jobs:
6059
run: mkdir --parents build/phpstan
6160

6261
- name: Cache PHPStan cache directory
63-
uses: actions/cache@v2
62+
uses: actions/cache@v3
6463
with:
6564
path: build/phpstan
6665
key: phpstan-${{ runner.os }}-${{ github.sha }}

.github/workflows/test-phpunit.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,12 @@ jobs:
4343
coverage: xdebug
4444

4545
- name: Get composer cache directory
46-
id: composer-cache
47-
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
46+
run: echo "COMPOSER_CACHE_FILES_DIR=$(composer config cache-files-dir)" >> $GITHUB_ENV
4847

4948
- name: Cache composer dependencies
50-
uses: actions/cache@v2
49+
uses: actions/cache@v3
5150
with:
52-
path: ${{ steps.composer-cache.outputs.dir }}
51+
path: ${{ env.COMPOSER_CACHE_FILES_DIR }}
5352
key: composer-${{ runner.os }}-${{ matrix.php-version }}-${{ hashFiles('**/composer.*') }}
5453
restore-keys: |
5554
composer-${{ runner.os }}-${{ matrix.php-version }}-

0 commit comments

Comments
 (0)