Skip to content

Commit

Permalink
code tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
rtlopez committed Mar 23, 2020
1 parent ea403a5 commit 31ef78a
Show file tree
Hide file tree
Showing 13 changed files with 1,295 additions and 33 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches: [ master ]

jobs:
build:
test:

runs-on: ubuntu-latest

Expand All @@ -20,8 +20,11 @@ jobs:
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest

# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
# Docs: https://getcomposer.org/doc/articles/scripts.md

- name: Run test suite
run: composer run-script test

- name: Run static analysis
run: composer run-script analyze

- name: Print php version
run: php --version
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/vendor
composer.lock

.project
.settings
Expand Down
15 changes: 11 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,21 @@
"ext-bcmath": "*"
},
"require-dev": {
"phpunit/phpunit": "^4.0"
"phpunit/phpunit": "^4.0",
"phpstan/phpstan": "^0.12.18"
},
"scripts": {
"test": "vendor/bin/phpunit"
"test": "vendor/bin/phpunit",
"analyze": "vendor/bin/phpstan analyze"
},
"autoload": {
"psr-0": {
"RtLopez\\": "src/"
"psr-4": {
"RtLopez\\": "src/RtLopez/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\RtLopez\\": "tests/"
}
}
}
Loading

0 comments on commit 31ef78a

Please sign in to comment.