Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
Updated to modern actions, services, and php versions
  • Loading branch information
nickwest authored Oct 7, 2024
1 parent 4868bb2 commit c83e8fb
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ on: push
name: tests
jobs:
linux_tests:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
timeout-minutes: 10

services:
Expand All @@ -11,7 +11,7 @@ jobs:
ports:
- 11211:11211
mysql:
image: mysql:5.7
image: mysql:8.4
env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_DATABASE: forge
Expand All @@ -22,7 +22,7 @@ jobs:
strategy:
fail-fast: true
matrix:
php: ['8.1', '8.2']
php: ['8.2', '8.3']
stability: [prefer-lowest, prefer-stable]

name: PHP ${{ matrix.php }} - ${{ matrix.stability }}
Expand Down Expand Up @@ -50,13 +50,13 @@ jobs:
tools: composer:v2
coverage: pcov

- name: Set Minimum PHP 8.1 Versions
uses: nick-fields/retry@v2
- name: Set Minimum PHP 8.2 Versions
uses: nick-fields/retry@v3
with:
timeout_minutes: 5
max_attempts: 5
command: composer require guzzlehttp/guzzle:^7.2 --no-interaction --no-update
if: matrix.php >= 8.1
command: composer require guzzlehttp/guzzle:^7.9 --no-interaction --no-update
if: matrix.php >= 8.2

# - name: Set Minimum PHP 8.1 Versions
# uses: nick-fields/retry@v2
Expand Down Expand Up @@ -96,7 +96,7 @@ jobs:
verbose: true

- name: Store artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: logs
path: |
Expand Down

0 comments on commit c83e8fb

Please sign in to comment.