Skip to content

Commit

Permalink
Use ramsey action for composer caching.
Browse files Browse the repository at this point in the history
  • Loading branch information
kagg-design committed Aug 23, 2023
1 parent 46abe19 commit 0a79d0d
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions .github/workflows/wpforms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,14 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Get Composer cache directory
id: composer-cache
run: |
echo "{dir}={$(composer config cache-files-dir)}" >> $GITHUB_OUTPUT
echo $GITHUB_OUTPUT
- name: Setup Composer caching
uses: actions/cache@v3
env:
cache-name: cache-composer-dependencies
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}

- name: Setup Composer caching
uses: ramsey/composer-install@v2

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

Expand Down

0 comments on commit 0a79d0d

Please sign in to comment.