Skip to content

Commit

Permalink
Cache Composer vendor files
Browse files Browse the repository at this point in the history
  • Loading branch information
XedinUnknown committed Apr 27, 2024
1 parent e6a112a commit f72b854
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,18 @@ jobs:
- 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)"

- name: Cache dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Install dependencies
uses: ramsey/composer-install@v3
with:
Expand Down

0 comments on commit f72b854

Please sign in to comment.