Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Aad Mathijssen committed Sep 23, 2024
1 parent 4e10d14 commit 37e7bec
Show file tree
Hide file tree
Showing 18 changed files with 2,133 additions and 82 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: tests

on:
push:
pull_request:

jobs:
test:
strategy:
matrix:
runner:
- "ubuntu-latest"
- "macos-latest"
php-version:
- "8.1"
- "8.2"
- "8.3"
composer-dependency-versions:
- "lowest"
- "highest"
runs-on: "${{ matrix.runner }}"
steps:
- uses: "actions/checkout@v4"
- uses: "shivammathur/setup-php@v2"
with:
php-version: "${{ matrix.php-version }}"
- uses: "ramsey/composer-install@v3"
with:
dependency-versions: "${{ matrix.composer-dependency-versions }}"
- run: "vendor/bin/phpcs"
- run: "vendor/bin/phpstan"
- run: "vendor/bin/phpunit"
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/.idea/
/vendor/
/.phpunit.cache/
/vendor/
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Updated `phpstan/extension-installer` dependency (1.4.1 => 1.4.3)
- Updated `phpstan/phpstan-strict-rules` dependency (1.6.0 => 1.6.1)
- Add `catalog-info.yaml`
- Add tests

## [v1.4.2] - 2024-07-12

Expand Down
12 changes: 11 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,20 @@
"iodigital-com/php-code-sniffer-standard": "^29.2",
"phpstan/extension-installer": "^1.4",
"phpstan/phpstan": "^1.12",
"phpstan/phpstan-strict-rules": "^1.6"
"phpstan/phpstan-strict-rules": "^1.6",
"phpunit/phpunit": "^10"
},
"autoload": {
"psr-4": {
"ComposerSemverCli\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"ComposerSemverCli\\": "tests",
"Composer\\Semver\\": "vendor/composer/semver/tests"
}
},
"bin": [
"bin/composer-semver"
],
Expand All @@ -38,6 +45,9 @@
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"phpstan/extension-installer": true
},
"preferred-install": {
"composer/semver": "source"
}
}
}
Loading

0 comments on commit 37e7bec

Please sign in to comment.