-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
changelog: | ||
exclude: | ||
labels: | ||
- dependencies | ||
- ignore-for-release-notes | ||
categories: | ||
- title: Breaking Changes | ||
labels: | ||
- Semver-Major | ||
- breaking-change | ||
- title: New Features | ||
labels: | ||
- Semver-Minor | ||
- enhancement | ||
- title: Other Changes | ||
labels: | ||
- "*" |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,7 +40,11 @@ jobs: | |
uses: ramsey/composer-install@v3 # https://github.com/marketplace/actions/install-composer-dependencies | ||
|
||
- name: "Run all static analysis tools" | ||
run: "composer static" | ||
run: | | ||
composer validate | ||
composer dump-autoload --strict-psr --dry-run | ||
./vendor/bin/phpcs | ||
./vendor/bin/phpstan | ||
tests: | ||
name: "Tests: ${{ matrix.os }} / ${{ matrix.php }} / ${{ matrix.dependencies }}${{ matrix.os == 'ubuntu' && matrix.dependencies == 'high' && matrix.php == '8.3' && ' w/ coverage' || '' }}" | ||
|
@@ -108,60 +112,14 @@ jobs: | |
echo "Total packages: $(echo "$output" | wc -l | tr -d ' ')" | ||
- name: "Run core tests with coverage" | ||
run: "composer test" | ||
run: "./vendor/bin/phpunit --testsuite=coverage --exclude-group=windows_only --colors=always" | ||
if: ${{ matrix.os == 'ubuntu' && matrix.dependencies == 'high' && matrix.php == '8.3' }} | ||
|
||
# There's no reason to generate coverage data on multiple jobs--the result should be the same. | ||
- name: "Run core tests without coverage" | ||
run: "./vendor/bin/phpunit --no-coverage --testsuite=all --exclude-group=windows_only" | ||
run: "./vendor/bin/phpunit --no-coverage --exclude-group=windows_only --colors=always" | ||
if: ${{ runner.os != 'Windows' && !( matrix.os == 'ubuntu' && matrix.dependencies == 'high' && matrix.php == '8.3' ) }} | ||
|
||
- name: "Run Windows tests" | ||
run: "./vendor/bin/phpunit --no-coverage --testsuite=all --exclude-group=no_windows" | ||
run: "./vendor/bin/phpunit --no-coverage --exclude-group=no_windows --colors=always" | ||
if: ${{ runner.os == 'Windows' }} | ||
|
||
performance: | ||
name: "Performance: ${{ matrix.os }}" | ||
runs-on: "${{ matrix.os }}-latest" | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ ubuntu, windows ] | ||
steps: | ||
- name: "Install rsync" | ||
uses: GuillaumeFalourd/[email protected] # https://github.com/marketplace/actions/setup-rsync | ||
|
||
- name: "Set up PHP" | ||
uses: shivammathur/setup-php@v2 # https://github.com/marketplace/actions/setup-php-action | ||
with: | ||
php-version: "8.2" | ||
coverage: none | ||
|
||
- name: "Checkout code" | ||
uses: actions/checkout@v4 # https://github.com/marketplace/actions/checkout | ||
|
||
- name: "Install dependencies" | ||
uses: ramsey/composer-install@v3 # https://github.com/marketplace/actions/install-composer-dependencies | ||
|
||
- name: "Run performance tests" | ||
run: "composer phpbench -- --progress=plain --ansi" | ||
|
||
mutation: | ||
name: "Mutation" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Set up PHP" | ||
uses: shivammathur/setup-php@v2 # https://github.com/marketplace/actions/setup-php-action | ||
with: | ||
php-version: "8.2" | ||
extensions: gd | ||
ini-values: zend.assertions=1 | ||
|
||
- name: "Checkout code" | ||
uses: actions/checkout@v4 # https://github.com/marketplace/actions/checkout | ||
|
||
- name: "Install dependencies" | ||
uses: ramsey/composer-install@v3 # https://github.com/marketplace/actions/install-composer-dependencies | ||
|
||
- name: "Run mutation tests" | ||
run: "composer infection" |
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.