From 773f40e2d12e4c7e79a2163330de882641d09f34 Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Wed, 22 May 2024 17:42:01 +0900 Subject: [PATCH] Github actions --- .github/workflows/ci.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7a78f9c..2cd3a18 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,12 +11,25 @@ jobs: - uses: php-actions/composer@v6 env: 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 uses: php-actions/phpstan@v3 with: path: src/ 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 run: | vendor/bin/phpunit