From b1417e636f6c5557e9a275539929bf98178a8b0e Mon Sep 17 00:00:00 2001 From: Norbert Orzechowicz Date: Mon, 22 Jul 2024 14:30:13 +0200 Subject: [PATCH] Updated github ctions cache, added dependabot for github actions --- .github/dependabot.yml | 5 +++++ .github/workflows/benchmark-baseline.yml | 2 +- .github/workflows/build-release.yml | 2 +- .github/workflows/build.yml | 2 +- .github/workflows/publish-website.yml | 2 +- .github/workflows/static-analyze.yml | 8 ++++---- .github/workflows/test-benchmark.yml | 2 +- .github/workflows/test-extensions.yml | 2 +- .github/workflows/test-mutations.yml | 4 ++-- .github/workflows/test-suite.yml | 2 +- .github/workflows/test-website.yml | 2 +- 11 files changed, 19 insertions(+), 14 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 6e251dab0..1d8833010 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,5 +1,10 @@ version: 2 updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + - package-ecosystem: "composer" directory: "/" schedule: diff --git a/.github/workflows/benchmark-baseline.yml b/.github/workflows/benchmark-baseline.yml index 01e85bc4d..eaa725950 100644 --- a/.github/workflows/benchmark-baseline.yml +++ b/.github/workflows/benchmark-baseline.yml @@ -71,7 +71,7 @@ jobs: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - name: "Cache Composer dependencies" - uses: "actions/cache@v3" + uses: "actions/cache@v4" with: path: "${{ steps.composer-cache.outputs.dir }}" key: "php-${{ matrix.php-version }}-locked-composer-${{ hashFiles('**/composer.lock') }}" diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 0e48e1c2f..fe93b51af 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -36,7 +36,7 @@ jobs: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - name: "Cache Composer dependencies" - uses: "actions/cache@v3" + uses: "actions/cache@v4" with: path: "${{ steps.composer-cache.outputs.dir }}" key: "php-${{ matrix.php-version }}-locked-composer-${{ hashFiles('**/composer.lock') }}" diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 31113e758..ec94df7b2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -40,7 +40,7 @@ jobs: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - name: "Cache Composer dependencies" - uses: "actions/cache@v3" + uses: "actions/cache@v4" with: path: "${{ steps.composer-cache.outputs.dir }}" key: "php-${{ matrix.php-version }}-locked-composer-${{ hashFiles('**/composer.lock') }}" diff --git a/.github/workflows/publish-website.yml b/.github/workflows/publish-website.yml index 4c0936856..6444efda8 100644 --- a/.github/workflows/publish-website.yml +++ b/.github/workflows/publish-website.yml @@ -38,7 +38,7 @@ jobs: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - name: "Cache Composer dependencies" - uses: "actions/cache@v3" + uses: "actions/cache@v4" with: path: "${{ steps.composer-cache.outputs.dir }}" key: "php-${{ matrix.php-version }}-composer-website-${{ hashFiles('web/landing/composer.lock') }}" diff --git a/.github/workflows/static-analyze.yml b/.github/workflows/static-analyze.yml index fcc5c7aed..635c3ebcb 100644 --- a/.github/workflows/static-analyze.yml +++ b/.github/workflows/static-analyze.yml @@ -62,7 +62,7 @@ jobs: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - name: "Cache Composer dependencies" - uses: "actions/cache@v3" + uses: "actions/cache@v4" with: path: "${{ steps.composer-cache.outputs.dir }}" key: "php-${{ matrix.php-version }}-locked-composer-${{ hashFiles('**/composer.lock') }}" @@ -73,7 +73,7 @@ jobs: run: "composer install --no-interaction --no-progress" - name: "Cache cs-fixer results" - uses: "actions/cache@v3" + uses: "actions/cache@v4" with: path: "var/cs-fixer" key: "php-${{ matrix.php-version }}-cache-cs-fixer-${{ github.run_id }}" @@ -81,7 +81,7 @@ jobs: php-${{ matrix.php-version }}-cache-cs-fixer- - name: "Cache phpstan results" - uses: "actions/cache@v3" + uses: "actions/cache@v4" with: path: "var/phpstan/cache" key: "php-${{ matrix.php-version }}-cache-phpstan-${{ github.run_id }}" @@ -89,7 +89,7 @@ jobs: php-${{ matrix.php-version }}-cache-phpstan- - name: "Cache psalm results" - uses: "actions/cache@v3" + uses: "actions/cache@v4" with: path: "var/psalm/cache" key: "php-${{ matrix.php-version }}-cache-psalm-${{ github.run_id }}" diff --git a/.github/workflows/test-benchmark.yml b/.github/workflows/test-benchmark.yml index a4022c9bc..bcf9d0d2f 100644 --- a/.github/workflows/test-benchmark.yml +++ b/.github/workflows/test-benchmark.yml @@ -51,7 +51,7 @@ jobs: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - name: "Cache Composer dependencies" - uses: "actions/cache@v3" + uses: "actions/cache@v4" with: path: "${{ steps.composer-cache.outputs.dir }}" key: "php-${{ matrix.php-version }}-locked-composer-${{ hashFiles('**/composer.lock') }}" diff --git a/.github/workflows/test-extensions.yml b/.github/workflows/test-extensions.yml index 3426cc9df..2afb500c7 100644 --- a/.github/workflows/test-extensions.yml +++ b/.github/workflows/test-extensions.yml @@ -70,7 +70,7 @@ jobs: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - name: "Cache Composer dependencies" - uses: "actions/cache@v3" + uses: "actions/cache@v4" with: path: "${{ steps.composer-cache.outputs.dir }}" key: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}-composer-${{ hashFiles('**/composer.lock') }}" diff --git a/.github/workflows/test-mutations.yml b/.github/workflows/test-mutations.yml index 4216d4162..71cf4ef81 100644 --- a/.github/workflows/test-mutations.yml +++ b/.github/workflows/test-mutations.yml @@ -55,7 +55,7 @@ jobs: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - name: "Cache Composer dependencies" - uses: "actions/cache@v3" + uses: "actions/cache@v4" with: path: "${{ steps.composer-cache.outputs.dir }}" key: "php-${{ matrix.php-version }}-locked-composer-${{ hashFiles('**/composer.lock') }}" @@ -66,7 +66,7 @@ jobs: run: "mkdir -p var/infection/cache" - name: "Cache infection results" - uses: "actions/cache@v3" + uses: "actions/cache@v4" with: path: "var/infection/cache" key: "php-${{ matrix.php-version }}-cache-infection-${{ github.run_id }}" diff --git a/.github/workflows/test-suite.yml b/.github/workflows/test-suite.yml index 6e8c59ca1..31830a7a0 100644 --- a/.github/workflows/test-suite.yml +++ b/.github/workflows/test-suite.yml @@ -116,7 +116,7 @@ jobs: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - name: "Cache Composer dependencies" - uses: "actions/cache@v3" + uses: "actions/cache@v4" with: path: "${{ steps.composer-cache.outputs.dir }}" key: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}-composer-${{ hashFiles('**/composer.lock') }}" diff --git a/.github/workflows/test-website.yml b/.github/workflows/test-website.yml index aa703a56a..d529fe30e 100644 --- a/.github/workflows/test-website.yml +++ b/.github/workflows/test-website.yml @@ -49,7 +49,7 @@ jobs: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - name: "Cache Composer dependencies" - uses: "actions/cache@v3" + uses: "actions/cache@v4" with: path: "${{ steps.composer-cache.outputs.dir }}" key: "php-${{ matrix.php-version }}-composer-website-${{ hashFiles('web/landing/composer.lock') }}"