From 9f2da5c8409cbf3d5412d9d062401f23a107b0f6 Mon Sep 17 00:00:00 2001 From: Dave Roverts Date: Tue, 6 Feb 2024 20:24:29 +0100 Subject: [PATCH] ci: add composer stability matrix --- .github/workflows/ci.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d7d9d3c0..159e7917 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,5 @@ -# GitHub Action for Laravel with MySQL name: CI + on: push: branches: [main] @@ -7,7 +7,7 @@ on: branches: [main] jobs: test-php-mysql: - name: Test PHP ${{ matrix.php-versions }} + Node ${{ matrix.node }} with MySQL + name: Test PHP ${{ matrix.php-versions }} (${{ matrix.stability }}) + Node ${{ matrix.node }} with MySQL runs-on: ubuntu-latest env: DB_DATABASE: laravel @@ -37,6 +37,7 @@ jobs: matrix: php-versions: ["8.2", "8.3"] node: [16, 18, 20] + stability: [prefer-lowest, prefer-stable] steps: - name: Checkout uses: actions/checkout@v3 @@ -88,8 +89,9 @@ jobs: - name: Copy/Paste Detector run: phpcpd app/ --min-lines=50 + test-php-postgresql: - name: Test PHP ${{ matrix.php-versions }} + Node ${{ matrix.node }} with PostgreSQL + name: Test PHP ${{ matrix.php-versions }} (${{ matrix.stability }}) + Node ${{ matrix.node }} with PostgreSQL runs-on: ubuntu-latest env: BROADCAST_DRIVER: log @@ -121,6 +123,7 @@ jobs: matrix: php-versions: ["8.2", "8.3"] node: [16, 18, 20] + stability: [prefer-lowest, prefer-stable] steps: - name: Checkout uses: actions/checkout@v3