-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK] Add github action for testing
This also includes issue templates for bug reports and feature requests.
- Loading branch information
Showing
5 changed files
with
96 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
## Summary / Description | ||
|
||
Short description of the bug. | ||
|
||
## Version | ||
|
||
Version in which the bug occurs. | ||
|
||
## Steps to reproduce | ||
|
||
How one can reproduce the issue - **this is very important** | ||
|
||
## Expected behaviour | ||
|
||
What you expected to happen. | ||
|
||
## Actual behavior | ||
|
||
What actually happens. | ||
|
||
### Additional | ||
|
||
**Possible fix** | ||
|
||
If you can, link to the line of code that might be responsible | ||
for the problem or create a pull request if you have created | ||
the fix already. | ||
|
||
***Miscellaneous*** | ||
|
||
Add any other information like screenshots. You can also paste | ||
any relevant logs. Please use code blocks (```) to format console | ||
output, logs, and code as it's very hard to read otherwise. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
## Summary / Description | ||
|
||
Summarize your idea for a new feature. | ||
|
||
## Describe the solution you'd like | ||
|
||
A clear and concise description of what you want to happen. | ||
|
||
## Describe alternatives you've considered | ||
|
||
A clear and concise description of any alternative solutions or | ||
features you've considered. | ||
|
||
## Possible solution | ||
|
||
If you can provide the feature by yourself, please either | ||
include the corresponding code or even better create a | ||
pull request. | ||
|
||
If you paste code, please use code blocks (```) for formatting | ||
since it's otherwise very hard to read. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Tests | ||
on: [push, pull_request] | ||
jobs: | ||
tests: | ||
name: Tests with PHP${{ matrix.php }} | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
matrix: | ||
php: [7.2, 7.3, 7.4] | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
extensions: zip | ||
|
||
- name: Get composer cache directory | ||
id: composer-cache | ||
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | ||
|
||
- name: Cache composer dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.composer-cache.outputs.dir }} | ||
key: ${{ runner.os }}-php-${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }} | ||
restore-keys: ${{ runner.os }}-php-${{ matrix.php }}-composer- | ||
|
||
- name: Install dependencies | ||
run: composer install --prefer-dist --no-progress --no-suggest --optimize-autoloader | ||
|
||
- name: Run Tests | ||
run: | | ||
composer tests:unit | ||
composer cs | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters