Skip to content

Commit

Permalink
update usage of set-output
Browse files Browse the repository at this point in the history
  • Loading branch information
svpernova09 committed Apr 19, 2024
1 parent fbefbf8 commit 89e1121
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,32 @@ jobs:
name: PHP ${{ matrix.php }}
steps:
- uses: actions/checkout@v4

- name: Install PHP
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php }}

- name: Report PHP version
run: php -v

- name: Validate composer.json and composer.lock
run: composer validate

- name: Get Composer Cache Directory
id: composer-cache
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@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ matrix.php }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ matrix.php }}-composer-

- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest

- name: Run test suite
run: vendor/bin/phpunit

0 comments on commit 89e1121

Please sign in to comment.