Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.0.0 #172

Draft
wants to merge 29 commits into
base: master
Choose a base branch
from
Draft

2.0.0 #172

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
9fd3d58
Fix version compare
aidantwoods Dec 30, 2019
4c22769
Check for null parse result
aidantwoods Dec 30, 2019
d1208f6
Utilise optional rawHtml to permit footnotes
aidantwoods Dec 30, 2019
d884559
Bump version for dev
aidantwoods Dec 30, 2019
e9c2536
Drop hhvm
aidantwoods Dec 30, 2019
ba0ae88
Test on modern versions of PHP
aidantwoods Dec 30, 2019
1ddbdec
Merge pull request #144 from erusev/dev-0.8.x/fix-footnotes
aidantwoods Dec 30, 2019
91ac3ff
Bump version for release
aidantwoods Dec 30, 2019
8296157
Namespace for psr-4
aidantwoods May 10, 2020
774ee75
Move test dir, add test config
aidantwoods May 10, 2020
6d82e03
Implement abbreviation block
aidantwoods May 10, 2020
f08ccc3
Implement DefinitionList
aidantwoods May 10, 2020
6f42ced
Drop custom markdown support
aidantwoods Oct 15, 2021
3f402cc
Adjust formatting for new renderer
aidantwoods Oct 15, 2021
c0f1dda
Test config files
aidantwoods Oct 15, 2021
9f99f52
Fix tests
aidantwoods Oct 15, 2021
99c7dd3
Implement ParsedownExtra extension
aidantwoods Oct 15, 2021
a745cb6
GitHub actions
aidantwoods Oct 15, 2021
9d8fb6f
Remove use of spread operator
aidantwoods Oct 15, 2021
a6790f9
Add infection config for mutation testing
aidantwoods Oct 15, 2021
a51ebc0
Implement new StateBearer requirements
aidantwoods Oct 15, 2021
d9c8813
Features are all StateBearers
aidantwoods Oct 15, 2021
368636d
This is nicer formatting
aidantwoods Oct 15, 2021
d22fd18
Relax mutation testing
aidantwoods Oct 15, 2021
16097ba
No longer need these in parsedown extra class
aidantwoods Oct 15, 2021
dda3ef2
Update php-cs-fixer
aidantwoods Oct 15, 2021
f89df70
Use beta release of parsedown core
aidantwoods May 21, 2022
d5a20c6
Use new error level instead of totally typed
aidantwoods May 21, 2022
aaed6a8
Test on PHP 8.1
aidantwoods May 21, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 98 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
name: ParsedownExtra
on: [push, pull_request]
jobs:
units:
name: Unit Tests
strategy:
matrix:
os: [ubuntu-latest]
php: [8.1, 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.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 update --prefer-dist --no-interaction --no-progress
vendor/bin/roave-infection-static-analysis-plugin --show-mutations --threads=4 --min-msi=70 --min-covered-msi=85

static-analysis:
name: Code Format and Static Analysis
strategy:
matrix:
os: [ubuntu-latest]
php: [8.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 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.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: 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

4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
composer.lock
vendor/
infection.log
.phpunit.result.cache
37 changes: 37 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?php
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$finder = Finder::create()
->in(__DIR__ . '/src/')
->in(__DIR__ . '/tests/')
;
$rules = [
'@PSR2' => true,
'array_syntax' => [
'syntax' => 'short',
],
'braces' => [
'allow_single_line_closure' => true,
],
'logical_operators' => true,
'native_constant_invocation' => [
'fix_built_in' => true,
],
'native_function_invocation' => [
'include' => ['@all'],
],
'no_unused_imports' => true,
'ordered_imports' => [
'sort_algorithm' => 'alpha',
],
'single_blank_line_before_namespace' => true,
'strict_comparison' => true,
'strict_param' => true,
'whitespace_after_comma_in_array' => true,
];
return (new Config)
->setRules($rules)
->setFinder($finder)
->setUsingCache(false)
->setRiskyAllowed(true)
;
29 changes: 0 additions & 29 deletions .travis.yml

This file was deleted.

Loading