Skip to content

Patch cycle - 2024 / Cycle 5 #204

Patch cycle - 2024 / Cycle 5

Patch cycle - 2024 / Cycle 5 #204

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
markdownlint-cli:
name: Lint markdown
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Run markdownlint-cli
uses: nosborn/[email protected]
with:
files: .
config_file: ".markdownlint.yaml"
test:
needs: [markdownlint-cli]
runs-on: ubuntu-latest
name: PHP ${{ matrix.php-version }}
strategy:
matrix:
php-version:
- '8.2'
- '8.3'
- '8.4'
steps:
- name: Set up PHP
uses: shivammathur/setup-php@c541c155eee45413f5b09a52248675b1a2575231
with:
php-version: ${{ matrix.php-version }}
- uses: actions/checkout@v4
- name: Validate composer.json and composer.lock
run: composer validate --strict
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v4
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- run: vendor/bin/phpunit --coverage-clover=coverage.xml