Test the @since MU
format.
#14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow | |
name: Tests | |
on: | |
push: | |
branches: | |
- 'develop' | |
- 'trunk' | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
build: | |
strategy: | |
matrix: | |
php: | |
- '8.3' | |
- '7.4' | |
fail-fast: false | |
name: PHP ${{ matrix.php }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
tools: composer:v2 | |
ini-file: development | |
coverage: none | |
env: | |
fail-fast: true | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Get Composer Cache Directory | |
id: composer-cache-dir | |
run: | #shell | |
echo dir="$(composer config cache-files-dir)" >> "$GITHUB_OUTPUT" | |
- name: Cache PHP Dependencies | |
id: composer-cache | |
uses: actions/cache@v4 | |
with: | |
path: ${{ steps.composer-cache-dir.outputs.dir }} | |
key: ${{ runner.os }}-composer-${{ matrix.php }}-${{ hashFiles('composer.json') }} | |
- name: Install PHP Dependencies | |
run: | #shell | |
composer install --prefer-dist --no-progress --no-interaction | |
- name: Run the tests | |
run: | #shell | |
composer test |