Skip to content

Commit

Permalink
refactor: add actions/cache & specify PHP version & extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
khalwat committed Jan 31, 2024
1 parent c0c39fb commit 174530f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/code-analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@ jobs:
steps:
- uses: actions/checkout@v4
# see https://github.com/php-actions/composer
- name: Cache Composer dependencies
uses: actions/cache@v3
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
- uses: php-actions/composer@v6
with:
php-version: 8.2
php_version: 8.2
php_extensions: ctype curl dom iconv imagick intl json mbstring openssl pcre pdo reflection spl zip
- run: ${{ matrix.actions.run }}

0 comments on commit 174530f

Please sign in to comment.