Gitbub action cache
This commit is contained in:
13
.github/workflows/ci.yml
vendored
13
.github/workflows/ci.yml
vendored
@@ -11,10 +11,23 @@ jobs:
|
|||||||
- uses: php-actions/composer@v6
|
- uses: php-actions/composer@v6
|
||||||
env:
|
env:
|
||||||
COMPOSER_ROOT_VERSION: dev-master
|
COMPOSER_ROOT_VERSION: dev-master
|
||||||
|
- name: "Restore result cache"
|
||||||
|
uses: actions/cache/restore@v4
|
||||||
|
with:
|
||||||
|
path: ./tmp
|
||||||
|
key: "result-cache-v1-${{ matrix.php-version }}-${{ github.run_id }}"
|
||||||
|
restore-keys: |
|
||||||
|
result-cache-v1-${{ matrix.php-version }}-
|
||||||
- name: PHPStan Static Analysis
|
- name: PHPStan Static Analysis
|
||||||
uses: php-actions/phpstan@v3
|
uses: php-actions/phpstan@v3
|
||||||
with:
|
with:
|
||||||
path: src/
|
path: src/
|
||||||
|
- name: "Save result cache"
|
||||||
|
uses: actions/cache/save@v4
|
||||||
|
if: always()
|
||||||
|
with:
|
||||||
|
path: ./tmp
|
||||||
|
key: "result-cache-v1-${{ matrix.php-version }}-${{ github.run_id }}"
|
||||||
# We need to use phpunit from the self install to get the class paths
|
# We need to use phpunit from the self install to get the class paths
|
||||||
- name: PHPunit Tests Prepare
|
- name: PHPunit Tests Prepare
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# PHP Stan Config
|
# PHP Stan Config
|
||||||
|
|
||||||
parameters:
|
parameters:
|
||||||
tmpDir: /tmp/phpstan-codeblocks-amazon-incentives
|
tmpDir: %currentWorkingDirectory%/tmp/phpstan-codeblocks-amazon-incentives
|
||||||
level: 8
|
level: 8
|
||||||
paths:
|
paths:
|
||||||
- %currentWorkingDirectory%/src
|
- %currentWorkingDirectory%/src
|
||||||
|
|||||||
2
tmp/.gitignore
vendored
Normal file
2
tmp/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
*
|
||||||
|
!.gitignore
|
||||||
Reference in New Issue
Block a user