Skip to content

Commit

Permalink
Upgrade GHA actions (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor authored Feb 12, 2025
1 parent f6a97b3 commit 9b1242e
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# https://docs.github.com/en/actions
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow

name: "CI"

Expand All @@ -17,7 +17,7 @@ jobs:
coding-standards:
name: "Coding Standards"

runs-on: "ubuntu-20.04"
runs-on: "ubuntu-24.04"

strategy:
matrix:
Expand All @@ -29,7 +29,7 @@ jobs:

steps:
- name: "Checkout"
uses: "actions/checkout@v3"
uses: "actions/checkout@v4"

- name: "Install PHP with extensions"
uses: "shivammathur/setup-php@v2"
Expand All @@ -47,7 +47,7 @@ jobs:
run: "echo \"COMPOSER_CACHE_DIR=$(composer config cache-dir)\" >> $GITHUB_ENV"

- name: "Cache PHAR files installed with phive"
uses: "actions/cache@v3"
uses: "actions/cache@v4"
with:
path: "${{ runner.temp }}/.phive"
key: "php-${{ matrix.php-version }}-phive-${{ matrix.dependencies }}-${{ hashFiles('.phive/phars.xml') }}"
Expand All @@ -65,7 +65,7 @@ jobs:
trustGpgKeys: "C00543248C87FB13,31C7E470E2138192,A978220305CD5C32"

- name: "Cache dependencies installed with composer"
uses: "actions/cache@v3"
uses: "actions/cache@v4"
with:
path: "${{ env.COMPOSER_CACHE_DIR }}"
key: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}"
Expand Down Expand Up @@ -95,7 +95,7 @@ jobs:
static-code-analysis:
name: "Static Code Analysis"

runs-on: "ubuntu-20.04"
runs-on: "ubuntu-24.04"

strategy:
matrix:
Expand All @@ -107,7 +107,7 @@ jobs:

steps:
- name: "Checkout"
uses: "actions/checkout@v3"
uses: "actions/checkout@v4"

- name: "Install PHP with extensions"
uses: "shivammathur/setup-php@v2"
Expand All @@ -122,7 +122,7 @@ jobs:
run: "echo \"COMPOSER_CACHE_DIR=$(composer config cache-dir)\" >> $GITHUB_ENV"

- name: "Cache PHAR files installed with phive"
uses: "actions/cache@v3"
uses: "actions/cache@v4"
with:
path: "${{ runner.temp }}/.phive"
key: "php-${{ matrix.php-version }}-phive-${{ matrix.dependencies }}-${{ hashFiles('.phive/phars.xml') }}"
Expand All @@ -140,7 +140,7 @@ jobs:
trustGpgKeys: "C00543248C87FB13,31C7E470E2138192,A978220305CD5C32"

- name: "Cache dependencies installed with composer"
uses: "actions/cache@v3"
uses: "actions/cache@v4"
with:
path: "${{ env.COMPOSER_CACHE_DIR }}"
key: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}"
Expand All @@ -162,7 +162,7 @@ jobs:
run: "mkdir -p .build/phpstan"

- name: "Cache cache directory for phpstan/phpstan"
uses: "actions/cache@v3"
uses: "actions/cache@v4"
with:
path: ".build/phpstan"
key: "php-${{ matrix.php-version }}-phpstan-${{ github.sha }}"
Expand All @@ -176,7 +176,7 @@ jobs:
tests:
name: "Tests"

runs-on: "ubuntu-20.04"
runs-on: "ubuntu-24.04"

strategy:
matrix:
Expand All @@ -201,7 +201,7 @@ jobs:

steps:
- name: "Checkout"
uses: "actions/checkout@v3"
uses: "actions/checkout@v4"

- name: "Install PHP with extensions"
uses: "shivammathur/setup-php@v2"
Expand All @@ -216,7 +216,7 @@ jobs:
run: "echo \"COMPOSER_CACHE_DIR=$(composer config cache-dir)\" >> $GITHUB_ENV"

- name: "Cache dependencies installed with composer"
uses: "actions/cache@v3"
uses: "actions/cache@v4"
with:
path: "${{ env.COMPOSER_CACHE_DIR }}"
key: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}"
Expand Down

0 comments on commit 9b1242e

Please sign in to comment.