Skip to content

Commit

Permalink
strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
llaumgui authored Dec 19, 2023
1 parent c1b9f59 commit 7a58884
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/qa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Tests
on:
[push, pull_request]

env:
phpLastVersion: '8.2'

jobs:

##############################################################################
Expand All @@ -11,18 +14,19 @@ jobs:
tests:
runs-on: ubuntu-latest
name: Test

strategy:
fail-fast: false
matrix:
php-version: ['8.1', '8.2', '8.3']
steps:
- uses: actions/checkout@v4

- name: Setup PHP with specific version of PECL extension
- name: Git checkout
uses: actions/checkout@v4
- name: Setup PHP ${{ matrix.php-version }} with PECL extension
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'

php-version: ${{ matrix.php-version }}
- name: Validate composer.json and composer.lock
run: composer validate --strict

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
Expand All @@ -31,26 +35,20 @@ jobs:
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
run: composer install --prefer-dist --no-progress

- name: Run test suite
run: composer run-script test


##############################################################################
# Markdownlint job
#
test_markdownlint:
runs-on: ubuntu-latest
name: MarkdownLint

steps:

- name: Git checkout
uses: actions/checkout@v4

- name: markdownlint-cli
uses: nosborn/github-action-markdown-cli@v3.3.0
with:
Expand Down

0 comments on commit 7a58884

Please sign in to comment.