-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
77da8fa
commit 5540fcc
Showing
5 changed files
with
134 additions
and
0 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,30 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: "[BUG]" | ||
labels: '' | ||
assignees: IlicMiljan | ||
|
||
--- | ||
|
||
### Describe the bug | ||
A clear and concise description of what the bug is. | ||
|
||
### Steps to Reproduce | ||
Please provide a code snippet or explicit steps that reproduce the behavior: | ||
1. Code snippet '...' | ||
2. Running function '...' | ||
3. See error | ||
|
||
### Expected behavior | ||
A clear and concise description of what you expected to happen. | ||
|
||
### Environment (please complete the following information): | ||
- RetryMaster version: [e.g. 1.0.0] | ||
- PHP version: [e.g. 8.0] | ||
|
||
### Actual Output / Stack Trace | ||
If applicable, add the actual output or stack trace received to help explain your problem. | ||
|
||
### Additional context | ||
Add any other context about the problem here. |
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,24 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: "[FEATURE]" | ||
labels: '' | ||
assignees: IlicMiljan | ||
|
||
--- | ||
|
||
### Is your feature request related to a problem? Please describe. | ||
|
||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
### 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. | ||
|
||
### Additional context | ||
|
||
Add any other context or screenshots about the feature request here. |
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,17 @@ | ||
--- | ||
name: Question | ||
about: Ask questions about this project | ||
title: "[QUESTION]" | ||
labels: '' | ||
assignees: IlicMiljan | ||
|
||
--- | ||
|
||
### Please describe your question | ||
A clear and concise description of your question. Please make sure to include as much information as possible. | ||
|
||
### What have you tried so far? | ||
Please describe what you have tried in order to answer your question. | ||
|
||
### Additional context | ||
Add any other context or screenshots about your question here. |
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,13 @@ | ||
### Description of Changes | ||
Briefly describe the changes you've made. | ||
|
||
### Related Issue | ||
If applicable, reference the issue that this PR addresses. | ||
|
||
### How Has This Been Tested? | ||
Briefly describe how you tested your changes. | ||
|
||
### Checklist | ||
Please confirm the following: | ||
- [ ] I have tested my changes and corrected any errors. | ||
- [ ] I have documented my changes if necessary. |
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,50 @@ | ||
name: PHP CI | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
test: | ||
name: PHP CI | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php-version: [ '8.0' ] | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-version }} | ||
tools: composer:v2, phpunit | ||
extensions: mbstring | ||
coverage: xdebug | ||
|
||
- name: Validate composer.json and composer.lock | ||
run: composer validate | ||
|
||
- name: Install Dependencies | ||
run: composer update --prefer-dist --no-progress | ||
|
||
- name: Run Unit Tests with PHPUnit | ||
run: ./vendor/bin/phpunit --coverage-clover ./coverage.xml | ||
|
||
- name: Check Code Style with PHP_CodeSniffer | ||
run: ./vendor/bin/phpcs --standard=./phpcs.xml | ||
|
||
- name: Static Analysis with PHPStan | ||
run: ./vendor/bin/phpstan analyse -c phpstan.neon | ||
|
||
- name: Upload Coverage Reports to Codecov | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: ./coverage.xml | ||
verbose: true |