Skip to content

Commit

Permalink
ci: upgrade ci runners
Browse files Browse the repository at this point in the history
  • Loading branch information
g105b committed Feb 10, 2025
1 parent ce40595 commit f4997df
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php: [ 8.1, 8.2 ]
php: [ 8.1, 8.2, 8.3, 8.4 ]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Cache Composer dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
Expand All @@ -27,7 +27,7 @@ jobs:
run: mkdir /tmp/github-actions/ && tar -cvf /tmp/github-actions/build.tar ./

- name: Upload build archive for test runners
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: build-artifact
path: /tmp/github-actions
Expand All @@ -37,13 +37,13 @@ jobs:
needs: [ composer ]
strategy:
matrix:
php: [ 8.1, 8.2 ]
php: [ 8.1, 8.2, 8.3, 8.4 ]

outputs:
coverage: ${{ steps.store-coverage.outputs.coverage_text }}

steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: build-artifact
path: /tmp/github-actions
Expand All @@ -62,7 +62,7 @@ jobs:
coverage_clover: _coverage/clover.xml

- name: Store coverage data
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: code-coverage
path: _coverage
Expand All @@ -72,9 +72,9 @@ jobs:
needs: [ phpunit ]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: code-coverage
path: _coverage
Expand All @@ -83,17 +83,17 @@ jobs:
run: cat "_coverage/coverage.txt"

- name: Upload to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v5

phpstan:
runs-on: ubuntu-latest
needs: [ composer ]
strategy:
matrix:
php: [ 8.1, 8.2 ]
php: [ 8.1, 8.2, 8.3, 8.4 ]

steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: build-artifact
path: /tmp/github-actions
Expand All @@ -112,10 +112,10 @@ jobs:
needs: [ composer ]
strategy:
matrix:
php: [ 8.1, 8.2 ]
php: [ 8.1, 8.2, 8.3, 8.4 ]

steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: build-artifact
path: /tmp/github-actions
Expand All @@ -136,10 +136,10 @@ jobs:
needs: [ composer ]
strategy:
matrix:
php: [ 8.1, 8.2 ]
php: [ 8.1, 8.2, 8.3, 8.4 ]

steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: build-artifact
path: /tmp/github-actions
Expand Down

0 comments on commit f4997df

Please sign in to comment.