Skip to content

Commit

Permalink
Merge pull request #31 from Spomky-Labs/Preparation2.0
Browse files Browse the repository at this point in the history
Preparation 2.1
  • Loading branch information
Spomky authored Nov 17, 2021
2 parents 08a97fd + d33eb2b commit 68e25bc
Show file tree
Hide file tree
Showing 118 changed files with 5,533 additions and 2,492 deletions.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
github: Spomky
patreon: FlorentMorselli
21 changes: 21 additions & 0 deletions .github/ISSUE_TEMPLATE/1_Bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: 🐛 Bug Report
about: ⚠️ See below for security reports
labels: Bug

---

**Version(s) affected**: x.y.z

**Description**
<!-- A clear and concise description of the problem. -->

**How to reproduce**
<!-- Code and/or config needed to reproduce the problem. If it's a complex bug,
create a "bug reproducer" as explained in: -->

**Possible Solution**
<!--- Optional: only if you have suggestions on a fix/reason for the bug -->

**Additional context**
<!-- Optional: any other context about the problem: log messages, screenshots, etc. -->
12 changes: 12 additions & 0 deletions .github/ISSUE_TEMPLATE/2_Feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
h---
name: 🚀 Feature Request
about: Ideas for new features and improvements

---

**Description**
<!-- A clear and concise description of the new feature. -->

**Example**
<!-- A simple example of the new feature in action (include PHP code, YAML config, etc.)
If the new feature changes an existing feature, include a simple before/after comparison. -->
11 changes: 11 additions & 0 deletions .github/ISSUE_TEMPLATE/3_Support_question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
name: ⛔ Support Question
about: We usually do not provide support. Please ask your question on https://stackoverflow.com/

---

We use GitHub issues only to discuss about bugs and new features.
For this kind of questions about using the library or the bundle, please use
https://stackoverflow.com/ using the tags `[cbor]` and `[php]`

Thanks!
10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE/4_Documentation_issue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
name: ⛔ Documentation Issue
about: See https://github.com/Spomky-Labs/cbor-php/issues for documentation issues

---

The documentation has its own dedicated repository. Please open your
documentation-related issue at https://github.com/Spomky-Labs/cbor-php/issues

Thanks!
28 changes: 15 additions & 13 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
| Q | A
| ------------- | ---
| Bug fix? | yes/no <!-- #-prefixed issue number(s), if any -->
| New feature? | yes/no
| BC breaks? | yes/no
| Deprecations? | yes/no
| Tests added | <!--highly recommended for new features-->
| Doc PR | <!--highly recommended for new features-->

| Branch? | <!-- see below -->
| Bug fix? | yes/no
| New feature? | yes/no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | yes/no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License | MIT
<!--
Fill in this template according to the PR you're about to submit.
Replace this comment by a description of what your PR is solving.
Replace this notice by a short README for your feature/bugfix. This will help people
understand your PR and can be used as a start for the documentation.
Please consider the following requirement:
* Modification of existing tests should be avoided unless deemed necessary.
* You MUST never open a PR related to a security issue. Contact Spomky in private at https://gitter.im/Spomky/
-->
Additionally:
- Always add tests and ensure they pass.
- Never break backward compatibility (unless you are working on the next major release branch).
- Bug fixes must be submitted against the lowest maintained branch where they apply
(lowest branches are regularly merged to upper ones so they get the fixes too.)
- Features and deprecations must be submitted against the last major branch (e.g. 1.x).
-->
8 changes: 8 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
daysUntilStale: 60
daysUntilClose: 7
staleLabel: wontfix
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
closeComment: false
32 changes: 32 additions & 0 deletions .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Coding Standards

on: [push]

jobs:
tests:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['7.4']
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}

steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}

- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: json, mbstring, openssl
coverage: xdebug

- name: Install Composer dependencies
run: |
composer update --no-progress --no-suggest --prefer-dist --optimize-autoloader
- name: ECS
run: make coding-standards
35 changes: 35 additions & 0 deletions .github/workflows/mutation-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Mutation Testing

on: [push]

jobs:
tests:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['7.4']
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}

steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}

- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: json, mbstring, openssl
coverage: xdebug

- name: Install Composer dependencies
run: |
composer update --no-progress --no-suggest --prefer-dist --optimize-autoloader
- name: Fetch Git base reference
run: git fetch --depth=1 origin $GITHUB_BASE_REF

- name: Infection
run: make mutation-tests-github
29 changes: 29 additions & 0 deletions .github/workflows/rector_checkstyle.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Rector Checkstyle

on: [push]

jobs:
tests:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ ubuntu-latest ]
php-versions: ['7.4']
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}

- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: json, mbstring, openssl
coverage: none

- name: Install Composer dependencies
run: composer update --no-progress --no-suggest --prefer-dist --optimize-autoloader

- name: Rector
run: make rector
32 changes: 32 additions & 0 deletions .github/workflows/static-analyze.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Static Analyze

on: [push]

jobs:
tests:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['7.4']
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}

steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}

- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: json, mbstring, openssl
coverage: xdebug

- name: Install Composer dependencies
run: |
composer update --no-progress --no-suggest --prefer-dist --optimize-autoloader
- name: PHPStan
run: make static-analyse
32 changes: 32 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Unit and Functional Tests

on: [push]

jobs:
tests:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ ubuntu-latest ]
php-versions: ['7.3', '7.4', '8.0', '8.1']
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}

steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}

- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: json, mbstring, openssl
coverage: xdebug

- name: Install Composer dependencies
run: |
composer update --no-progress --no-suggest --prefer-dist --optimize-autoloader
- name: Run tests
run: make tests
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/vendor/
/composer.lock
/*cache
/*cache
/build
/infection.log
70 changes: 0 additions & 70 deletions .php_cs.dist

This file was deleted.

9 changes: 0 additions & 9 deletions .scrutinizer.yml

This file was deleted.

Loading

0 comments on commit 68e25bc

Please sign in to comment.