Skip to content

Commit

Permalink
Merge branch 'release/6.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiaanluca committed Mar 13, 2022
2 parents 729a851 + d105e85 commit e830fa6
Show file tree
Hide file tree
Showing 27 changed files with 902 additions and 746 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ trim_trailing_whitespace = true
[*.md]
trim_trailing_whitespace = false

[*.yml]
[*.{yml,yaml}]
indent_size = 2
11 changes: 11 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Reduce Composer package download by removing obsolete files

/.editorconfig export-ignore
/.gitattributes export-ignore
/.github export-ignore
/.gitignore export-ignore
/.php_cs.dist.php export-ignore
/CODE_OF_CONDUCT.md export-ignore
/CONTRIBUTING.md export-ignore
/phpunit.xml.dist export-ignore
/tests export-ignore
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/BUG_REPORT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Bug report
about: Create a report to help us improve this project
title: ''
labels: bug
assignees: sebastiaanluca
---

### Description

### Expected result

### Steps to reproduce

Please provide a fully working repository that reproduces the bug.

### Additional info

Logs, error output, setup, environment, packages, versions, etc.
23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/FEATURE_REQUEST.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: feature
assignees: sebastiaanluca
---

### Description

A clear and concise description of the problem or proposal.

### Suggested solution

A clear and concise description of what you want to happen.

### Possible alternatives

A clear and concise description of any alternative solutions or features you've considered.

### Additional context

Any other context or screenshots to help situate and understand the requested feature.
22 changes: 15 additions & 7 deletions PULL_REQUEST_TEMPLATE.md → .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
name: Pull request
about: Create a new pull request to merge code into the main branch
title: 'A short, descriptive title'
labels: ''
assignees: sebastiaanluca
---

## PR Type

What kind of pull request is this? Put an `x` in all the boxes that apply:
Expand All @@ -8,17 +16,16 @@ What kind of pull request is this? Put an `x` in all the boxes that apply:
- [ ] Change feature (non-breaking change which either changes or refactors existing functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)

## What does it change?

Describe your changes in detail.
---

## Why this PR?
### Description

Why is this change required? What problem does it solve?
Clearly describe what this pull request changes and why.

## How has this been tested?
### Steps to follow to verify functionality

Please describe in detail how you tested your changes (or are planning on testing them).
1. Clearly state which actions should be performed to fully and correctly review this issue.
2.

## Checklist

Expand All @@ -32,3 +39,4 @@ To facilitate merging your change and the approval of this PR, please make sure
- If the change to the code requires a change to the documentation, it has been updated accordingly

If you're unsure about any of these, don't hesitate to ask. We're here to help!

54 changes: 54 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Check code

on:
push:
pull_request:

jobs:

check:
name: Run PHP tests - PHP ${{ matrix.php }} - ${{ matrix.dependency-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
php: [8.0, 8.1]
dependency-version: [prefer-lowest, prefer-stable]
os: [ubuntu-latest]

steps:
- name: Check out code
uses: actions/checkout@v2

- name: Cache PHP dependencies
uses: actions/cache@v2
with:
path: '**/vendor'
key: ${{ runner.os }}-vendor-cache-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-vendor-cache-
- name: Cache Composer dependencies
uses: actions/cache@v2
with:
path: ~/.composer/cache/files
key: composer-${{ runner.os }}-php-${{ matrix.php }}-${{ hashFiles('composer.json') }}

- name: Validate Composer configuration file
run: composer validate --strict

- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mbstring
coverage: none

- name: Install dependencies
run: composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-progress --optimize-autoloader

- name: Lint code
run: vendor/bin/php-cs-fixer fix --dry-run --diff

- name: Run tests
run: vendor/bin/phpunit
9 changes: 6 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
/vendor
composer.phar
.idea
.php-cs-fixer.cache
.phpunit.result.cache
composer.lock
.DS_Store
composer.phar
phpunit.xml
vendor/
Loading

0 comments on commit e830fa6

Please sign in to comment.