Skip to content

Commit

Permalink
Add GitHub Specific Configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ilicmiljan committed Mar 7, 2024
1 parent 77da8fa commit 5540fcc
Show file tree
Hide file tree
Showing 5 changed files with 134 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
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.
24 changes: 24 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
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.
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/question.md
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.
13 changes: 13 additions & 0 deletions .github/pull_request_template.md
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.
50 changes: 50 additions & 0 deletions .github/workflows/php-ci.yaml
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

0 comments on commit 5540fcc

Please sign in to comment.