Skip to content

Commit

Permalink
Update GH Action to install specific PHP versions
Browse files Browse the repository at this point in the history
Just copy the laravel/laravel setup config. Life's too short.
  • Loading branch information
monooso committed Mar 20, 2024
1 parent 692569d commit 5838013
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,25 @@ on:
jobs:
lint-and-test:
runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
php: [8.2, 8.3]

name: PHP ${{ matrix.php }}

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite
coverage: none

- name: Validate composer.json and composer.lock
run: composer validate --strict

Expand Down

0 comments on commit 5838013

Please sign in to comment.