Skip to content

Commit

Permalink
Add testing matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
flavioheleno committed Mar 11, 2024
1 parent 074870c commit d650ee7
Showing 1 changed file with 22 additions and 6 deletions.
28 changes: 22 additions & 6 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,41 @@ name: PHP Pipeline

on:
push:
branches: [ "main" ]
branches:
- main
pull_request:
branches: [ "main" ]
branches:
- main

permissions:
contents: read

jobs:
build:
pipeline:
name: PHP ${{ matrix.php-version }}
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
php-version:
- '8.2'
- '8.3'
experimental:
- false
include:
- php-version: '8.4'
experimental: true

steps:
- name: Repository checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Setup PHP 8.2
uses: shivammathur/setup-php@6d7209f44a25a59e904b1ee9f3b0c33ab2cd888d # v2.29.0
with:
php-version: '8.2'
tools: composer
php-version: ${{ matrix.php-version }}
tools: composer:v2

- name: Validate composer.json and composer.lock
run: composer validate --strict
Expand All @@ -35,7 +51,7 @@ jobs:
${{ runner.os }}-php-
- name: Install dependencies
run: composer install --prefer-dist --no-progress
run: composer install --prefer-dist --no-progress --no-interaction

- name: Run Code Linter
run: make lint
Expand Down

0 comments on commit d650ee7

Please sign in to comment.