diff --git a/action.yml b/action.yml index 9f0aadb..8743fd1 100644 --- a/action.yml +++ b/action.yml @@ -28,7 +28,15 @@ runs: env: GITHUB_TOKEN: ${{ secrets.GHTKN }} + - name: Cache Vendor + id: cache-vendor + uses: actions/cache@v3 + with: + path: vendor + key: ${{ runner.os }}-vendor-${{ hashFiles('**/composer.lock') }} + - name: Install Dependencies + if: steps.cache-vendor.outputs.cache-hit != 'true' # Skip if cache hit run: | composer install --no-progress --prefer-dist --optimize-autoloader shell: bash