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

Feature descriptions #60

Merged
merged 10 commits into from
Oct 3, 2024
Merged
28 changes: 28 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,34 @@ jobs:
if: matrix.operating-system != 'windows-latest'
run: sudo vendor/bin/phpunit

behaviour-tests:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system:
- ubuntu-latest
- windows-latest
php-versions:
- '8.1'
- '8.2'
- '8.3'
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: intl, sodium, zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v4
- uses: ramsey/composer-install@v3
- name: Run Behat on Windows
if: matrix.operating-system == 'windows-latest'
run: vendor/bin/behat --tags="~@non-windows"
- name: Run Behat on non-Windows
if: matrix.operating-system != 'windows-latest'
run: vendor/bin/behat

coding-standards:
runs-on: ubuntu-latest
steps:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
phpcs.xml
phpunit.xml
psalm.xml
behat.yml
box.json
box.phar
pie.phar
10 changes: 10 additions & 0 deletions behat.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
default:
autoload:
'': "%paths.base%/test/behaviour"
suites:
default:
contexts:
- Php\PieBehaviourTest\CliContext
gherkin:
filters:
tags: "~@wip"
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"autoload-dev": {
"psr-4": {
"Php\\PieIntegrationTest\\": "test/integration/",
"Php\\PieUnitTest\\": "test/unit/"
"Php\\PieUnitTest\\": "test/unit/",
"Php\\PieBehaviourTest\\": "test/behaviour/"
}
},
"authors": [
Expand All @@ -38,6 +39,7 @@
"webmozart/assert": "^1.11"
},
"require-dev": {
"behat/behat": "^3.14",
"doctrine/coding-standard": "^12.0",
"php-standard-library/psalm-plugin": "^2.3",
"phpunit/phpunit": "^10.5",
Expand Down
Loading