mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
99 lines
2.5 KiB
YAML
99 lines
2.5 KiB
YAML
name: Parsedown
|
|
on: [push, pull_request]
|
|
jobs:
|
|
units:
|
|
name: Unit Tests
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest]
|
|
php: [8.0, 7.4, 7.3, 7.2, 7.1]
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- name: Set up PHP
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: ${{ matrix.php }}
|
|
tools: composer:v2
|
|
|
|
- uses: actions/checkout@v2
|
|
- name: Run Tests
|
|
run: |
|
|
composer remove infection/infection --no-update --dev
|
|
composer remove roave/infection-static-analysis-plugin --no-update --dev
|
|
composer update --prefer-dist --no-interaction --no-progress
|
|
composer test-units
|
|
|
|
mutations:
|
|
name: Mutation Tests
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest]
|
|
php: [8.0]
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- name: Set up PHP
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: ${{ matrix.php }}
|
|
tools: composer:v2
|
|
|
|
- uses: actions/checkout@v2
|
|
- name: Run Tests
|
|
run: |
|
|
composer update --prefer-dist --no-interaction --no-progress
|
|
vendor/bin/roave-infection-static-analysis-plugin --show-mutations --threads=4 --min-msi=80 --min-covered-msi=80
|
|
|
|
static-analysis:
|
|
name: Code Format and Static Analysis
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest]
|
|
php: [8.0]
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- name: Set up PHP
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: ${{ matrix.php }}
|
|
tools: composer:v2
|
|
|
|
- uses: actions/checkout@v2
|
|
- name: Run Tests
|
|
run: |
|
|
composer install --prefer-dist --no-interaction --no-progress
|
|
composer test-static -- --shepherd
|
|
composer test-formatting
|
|
composer test-dead-code
|
|
|
|
commonmark:
|
|
name: CommonMark
|
|
continue-on-error: true
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest]
|
|
php: [8.0]
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- name: Set up PHP
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: ${{ matrix.php }}
|
|
tools: composer:v2
|
|
|
|
- uses: actions/checkout@v2
|
|
- name: Install
|
|
run: composer install --prefer-dist --no-interaction --no-progress
|
|
|
|
- name: CommonMark Strict
|
|
continue-on-error: true
|
|
run: composer test-commonmark
|
|
|
|
- name: CommonMark Weak
|
|
continue-on-error: true
|
|
run: composer test-commonmark-weak
|
|
|