Skip to content

Commit

Permalink
Adds test automation
Browse files Browse the repository at this point in the history
  • Loading branch information
jensscherbl committed Jul 16, 2023
1 parent ca635a6 commit d76ead3
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 3 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Test

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

permissions:
contents: read

jobs:
test:
name: Test
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Validate
run: composer validate --strict
- name: Build
run: composer install --prefer-dist --no-progress
- name: PHPStan
run: composer run phpstan
- name: PHPUnit
run: composer run phpunit
14 changes: 11 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"name": "kenshodigital/technical-indicators",
"description": "Calculates indicators for technical analysis.",
"type": "library",
"version": "0.1.0",
"homepage": "https://github.com/kenshodigital/technical-indicators",
"license": "MIT",
"authors":
Expand Down Expand Up @@ -38,9 +37,18 @@
"phpunit/phpunit": "^10.2"
},
"scripts": {
"test": [
"phpunit",
"phpstan":
[
"phpstan"
],
"phpunit":
[
"phpunit"
],
"test":
[
"phpstan",
"phpunit"
]
}
}

0 comments on commit d76ead3

Please sign in to comment.