Github actions

This commit is contained in:
2024-05-22 17:42:01 +09:00
parent 0bb137dff6
commit 773f40e2d1

View File

@@ -11,12 +11,25 @@ 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@v3
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/
configuration: phpstan.neon configuration: phpstan.neon
# We need to use phpunit from the self install to get the class paths - name: "Save result cache"
uses: actions/cache/save@v3
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
- name: PHPunit Tests - name: PHPunit Tests
run: | run: |
vendor/bin/phpunit vendor/bin/phpunit