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

Introduce a Makefile for easy command execution #17

Merged
merged 1 commit into from
Aug 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ jobs:
uses: ramsey/composer-install@v2

- name: Check coding standards
run: vendor/bin/php-cs-fixer fix --dry-run --verbose
run: make standards
2 changes: 1 addition & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ jobs:
uses: ramsey/composer-install@v2

- name: Run test suite
run: vendor/bin/phpunit --testdox
run: make unit-tests
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.DS_Store
.php-cs-fixer.cache
.phpunit.result.cache
.vscode
Expand Down
15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.PHONY: *

build:
composer install

# Roll-up all of the test commands
test: unit-tests standards

# Check coding standards with PHP-CS-Fixer
standards:
vendor/bin/php-cs-fixer fix --dry-run --verbose

# Execute the PHPUnit test suite
unit-tests:
vendor/bin/phpunit --testdox --colors=always
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"archive": {
"exclude": [
".*",
"Makefile",
"phpunit.xml.dist",
"tests"
]
Expand Down
Loading