Skip to content

Commit c99cd52

Browse files
Merge branch 'release/4.0.0'
2 parents 0859ed6 + 900fa8b commit c99cd52

18 files changed

+292
-244
lines changed

.gitattributes

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Reduce Composer package download by removing obsolete files
2+
3+
/.editorconfig export-ignore
4+
/.gitattributes export-ignore
5+
/.github export-ignore
6+
/.gitignore export-ignore
7+
/CODE_OF_CONDUCT.md export-ignore
8+
/CONTRIBUTING.md export-ignore
9+
/phpunit.xml.dist export-ignore
10+
/tests export-ignore
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve this project
4+
title: ''
5+
labels: bug
6+
assignees: sebastiaanluca
7+
---
8+
9+
### Description
10+
11+
### Expected result
12+
13+
### Steps to reproduce
14+
15+
1.
16+
2.
17+
3.
18+
19+
### Traces
20+
21+
Logs, error output, etc.
22+
23+
### Environment information
24+
25+
Setup, environment, packages, versions, etc.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: feature
6+
assignees: sebastiaanluca
7+
---
8+
9+
### Description
10+
11+
A clear and concise description of the problem or proposal.
12+
13+
### Suggested solution
14+
15+
A clear and concise description of what you want to happen.
16+
17+
### Possible alternatives
18+
19+
A clear and concise description of any alternative solutions or features you've considered.
20+
21+
### Additional context
22+
23+
Any other context or screenshots to help situate and understand the requested feature.

PULL_REQUEST_TEMPLATE.md renamed to .github/PULL_REQUEST_TEMPLATE.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
---
2+
name: Pull request
3+
about: Create a new pull request to merge code into the main branch
4+
title: 'A short, descriptive title'
5+
labels: ''
6+
assignees: sebastiaanluca
7+
---
8+
19
## PR Type
210

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

11-
## What does it change?
12-
13-
Describe your changes in detail.
19+
---
1420

15-
## Why this PR?
21+
### Description
1622

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

19-
## How has this been tested?
25+
### Steps to follow to verify functionality
2026

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

2330
## Checklist
2431

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

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

.github/workflows/test.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: test
2+
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
- cron: '0 12 15 * *'
8+
9+
jobs:
10+
test:
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
php: [8.0]
16+
dependency-version: [prefer-lowest, prefer-stable]
17+
os: [ubuntu-latest]
18+
19+
name: PHP ${{ matrix.php }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
20+
21+
steps:
22+
- name: Check out code
23+
uses: actions/checkout@v2
24+
25+
- name: Cache dependencies
26+
uses: actions/cache@v2
27+
with:
28+
path: ~/.composer/cache/files
29+
key: dependencies-${{ runner.os }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
30+
31+
- name: Validate Composer configuration file
32+
run: composer validate --strict
33+
34+
- name: Set up PHP
35+
uses: shivammathur/setup-php@v2
36+
with:
37+
php-version: ${{ matrix.php }}
38+
extensions: mbstring
39+
coverage: none
40+
41+
- name: Install dependencies
42+
run: |
43+
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
44+
45+
- name: Execute tests
46+
run: vendor/bin/phpunit

.gitignore

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
composer.phar
1+
.phpunit.result.cache
2+
/.idea
23
composer.lock
3-
vendor
4-
tests/files/
4+
composer.phar
5+
phpunit.xml
6+
tests/temp/
7+
vendor/

.travis.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,20 @@ All notable changes to `sebastiaanluca/php-pipe-operator` will be documented in
44

55
Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) principles.
66

7-
## Unreleased
7+
## 4.0.0 (2021-06-22)
8+
9+
### Added
10+
11+
- Added support for PHP 8
12+
- Added static constructor
13+
14+
### Changed
15+
16+
- Internal PHP 8 code updates
17+
18+
### Removed
19+
20+
- Removed support for PHP 7
821

922
## 3.0.0 (2019-02-27)
1023

ISSUE_TEMPLATE.md

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)