Skip to content

Commit

Permalink
Merge branch 'release/2.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
TravisCarden committed Dec 16, 2024
2 parents 5ab70d1 + 01dbb74 commit abaf3e2
Show file tree
Hide file tree
Showing 121 changed files with 2,134 additions and 71,029 deletions.
4 changes: 0 additions & 4 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,9 @@
/.idea export-ignore
/composer.lock export-ignore
/config export-ignore
/grumphp.yml.dist export-ignore
/infection.json5.dist export-ignore
/phpbench.json export-ignore
/phpcs.xml.dist export-ignore
/phpstan.neon.dist export-ignore
/phpunit.xml.dist export-ignore
/rector.php export-ignore
/tests export-ignore
/tools export-ignore
/var export-ignore
17 changes: 17 additions & 0 deletions .github/release.yml
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
@@ -1,5 +1,5 @@
---
name: Compatability
name: Compatibility

on:
schedule:
Expand All @@ -10,8 +10,8 @@ on:
workflow_dispatch:

jobs:
compatability:
name: Compatability
compatibility:
name: Compatibility
runs-on: ubuntu-latest
steps:
- name: Install rsync
Expand All @@ -29,5 +29,5 @@ jobs:
- name: Install dependencies
uses: ramsey/composer-install@v3 # https://github.com/marketplace/actions/install-composer-dependencies

- name: Run compatability tests
run: composer compatability
- name: Run compatibility tests
run: composer compatibility
58 changes: 8 additions & 50 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' || '' }}"
Expand Down Expand Up @@ -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"
38 changes: 0 additions & 38 deletions .github/workflows/performance.yml

This file was deleted.

3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/.idea/dictionaries/*
!/.idea/dictionaries/project.xml
/.idea/php-test-framework.xml
/.idea/php.xml
/.idea/workspace.xml
/grumphp.yml
/infection.json5
/phpcs.xml
/phpunit.xml
/tests/Exploratory/*
Expand Down
5 changes: 5 additions & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion .idea/composer-stager.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions .idea/dictionaries/project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

141 changes: 0 additions & 141 deletions .idea/php.xml

This file was deleted.

2 changes: 1 addition & 1 deletion .idea/runConfigurations/All_Tests.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/runConfigurations/Fast_Tests.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit abaf3e2

Please sign in to comment.