From d650ee7ef56acce4b53bb4e8dd74b3600135f1f8 Mon Sep 17 00:00:00 2001 From: Flavio Heleno Date: Mon, 11 Mar 2024 08:22:53 -0300 Subject: [PATCH] Add testing matrix --- .github/workflows/php.yml | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index aa9d4de..6326847 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -2,16 +2,32 @@ 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 @@ -19,8 +35,8 @@ jobs: - 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 @@ -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