Skip to content

Commit 61f740b

Browse files
authored
Merge pull request #50 from reactphp-parallel/PHP-8.2-PLUS
PHP 8.2+
2 parents 08b45eb + 6ee0231 commit 61f740b

24 files changed

+4522
-2578
lines changed

.editorconfig

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
indent_style = space
6+
indent_size = 4
7+
insert_final_newline = true
8+
trim_trailing_whitespace = true
9+
10+
[*.json]
11+
indent_size = 2
12+
13+
[*.yml]
14+
indent_size = 2
15+
16+
[*.yaml]
17+
indent_size = 2
18+
19+
[Makefile]
20+
indent_style = tab
21+
22+
[*.neon]
23+
indent_style = tab

.gitattributes

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1-
.travis.yml export-ignore
2-
.gitignore export-ignore
1+
# Ignoring files for distribution archieves
2+
.github/ export-ignore
3+
etc/ export-ignore
4+
tests/ export-ignore
5+
var/ export-ignore
6+
.devcontainer.json export-ignore
7+
.editorconfig export-ignore
38
.gitattributes export-ignore
4-
.scrutinizer.yml export-ignore
5-
phpunit.xml.dist export-ignore
9+
.gitignore export-ignore
10+
CONTRIBUTING.md export-ignore
11+
infection.json.dist export-ignore
612
Makefile export-ignore
13+
README.md export-ignore

.github/dependabot.yml

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

.github/renovate.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": [
4+
"github>WyriHaximus/renovate-config:php-package"
5+
]
6+
}

.github/workflows/ci.yml

Lines changed: 12 additions & 108 deletions
Original file line numberDiff line numberDiff line change
@@ -1,113 +1,17 @@
11
name: Continuous Integration
22
on:
33
push:
4+
branches:
5+
- 'main'
6+
- 'master'
7+
- 'refs/heads/v[0-9]+.[0-9]+.[0-9]+'
48
pull_request:
9+
## This workflow needs the `pull-request` permissions to work for the package diffing
10+
## Refs: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#permissions
11+
permissions:
12+
pull-requests: write
13+
contents: read
514
jobs:
6-
generate-checks-strategy:
7-
name: Generate Checks
8-
runs-on: ubuntu-latest
9-
outputs:
10-
check: ${{ steps.generate-checks-strategy.outputs.check }}
11-
steps:
12-
- uses: actions/checkout@v1
13-
- id: generate-checks-strategy
14-
name: Generate check
15-
run: |
16-
printf "Checks found: %s\r\n" $(make task-list-ci)
17-
printf "::set-output name=check::%s" $(make task-list-ci)
18-
lint:
19-
runs-on: ubuntu-latest
20-
steps:
21-
- name: Lint Code Base
22-
uses: docker://github/super-linter:v2.2.0
23-
composer-install:
24-
strategy:
25-
fail-fast: false
26-
matrix:
27-
php: [7.4]
28-
composer: [lowest, current, highest]
29-
needs: lint
30-
runs-on: ubuntu-latest
31-
container:
32-
image: ghcr.io/wyrihaximusnet/php:${{ matrix.php }}-zts-alpine3.12-dev-root
33-
steps:
34-
- uses: actions/checkout@v1
35-
- name: Cache composer packages
36-
uses: actions/cache@v1
37-
with:
38-
path: ./vendor/
39-
key: ${{ matrix.composer }}-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }}
40-
- name: Install Dependencies
41-
run: composer update --prefer-lowest --no-progress --ansi --no-interaction --prefer-dist -o
42-
if: matrix.composer == 'lowest'
43-
- name: Install Dependencies
44-
run: composer install --ansi --no-progress --no-interaction --prefer-dist -o
45-
if: matrix.composer == 'current'
46-
- name: Install Dependencies
47-
run: composer update --ansi --no-progress --no-interaction --prefer-dist -o
48-
if: matrix.composer == 'highest'
49-
examples:
50-
strategy:
51-
fail-fast: false
52-
matrix:
53-
php: [7.4]
54-
composer: [lowest, current, highest]
55-
example: [echo, exception, json, sleep, versions]
56-
needs: composer-install
57-
runs-on: ubuntu-latest
58-
container:
59-
image: wyrihaximusnet/php:${{ matrix.php }}-zts-alpine3.12-dev-root
60-
steps:
61-
- uses: actions/checkout@v1
62-
- name: Cache composer packages
63-
uses: actions/cache@v1.0.1
64-
with:
65-
path: ./vendor/
66-
key: ${{ matrix.composer }}-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }}
67-
- name: Install Dependencies
68-
run: (test -f vendor && true ) || composer update --prefer-lowest --no-progress --ansi --no-interaction --prefer-dist -o
69-
if: matrix.composer == 'lowest'
70-
- name: Install Dependencies
71-
run: (test -f vendor && true ) || composer install --ansi --no-progress --no-interaction --prefer-dist -o
72-
if: matrix.composer == 'current'
73-
- name: Install Dependencies
74-
run: (test -f vendor && true ) || composer update --ansi --no-progress --no-interaction --prefer-dist -o
75-
if: matrix.composer == 'highest'
76-
- name: 'Run Example: ${{ matrix.example }}'
77-
run: php ./examples/${{ matrix.example }}.php
78-
qa:
79-
strategy:
80-
fail-fast: false
81-
matrix:
82-
php: [7.4]
83-
composer: [lowest, current, highest]
84-
check: ${{ fromJson(needs.generate-checks-strategy.outputs.check) }}
85-
needs:
86-
- composer-install
87-
- generate-checks-strategy
88-
runs-on: ubuntu-latest
89-
container:
90-
image: ghcr.io/wyrihaximusnet/php:${{ matrix.php }}-zts-alpine3.12-dev-root
91-
steps:
92-
- uses: actions/checkout@v1
93-
- name: Cache composer packages
94-
uses: actions/cache@v1
95-
with:
96-
path: ./vendor/
97-
key: ${{ matrix.composer }}-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }}
98-
- name: Install Dependencies
99-
run: (test -f vendor && true ) || composer update --prefer-lowest --no-progress --ansi --no-interaction --prefer-dist -o
100-
if: matrix.composer == 'lowest'
101-
- name: Install Dependencies
102-
run: (test -f vendor && true ) || composer install --ansi --no-progress --no-interaction --prefer-dist -o
103-
if: matrix.composer == 'current'
104-
- name: Install Dependencies
105-
run: (test -f vendor && true ) || composer update --ansi --no-progress --no-interaction --prefer-dist -o
106-
if: matrix.composer == 'highest'
107-
- name: Fetch Tags
108-
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* || true
109-
if: matrix.check == 'backward-compatibility-check'
110-
- run: make ${{ matrix.check }}
111-
env:
112-
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
113-
COVERALLS_RUN_LOCALLY: ${{ secrets.COVERALLS_RUN_LOCALLY }}
15+
ci:
16+
name: Continuous Integration
17+
uses: WyriHaximus/github-workflows/.github/workflows/package.yaml@main

.github/workflows/craft-release.yaml

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

.github/workflows/label-sponsors.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Release Management
2+
on:
3+
pull_request:
4+
types:
5+
- opened
6+
- labeled
7+
- unlabeled
8+
- synchronize
9+
- reopened
10+
milestone:
11+
types:
12+
- closed
13+
permissions:
14+
contents: write
15+
issues: write
16+
pull-requests: write
17+
jobs:
18+
release-managment:
19+
name: Create Release
20+
uses: WyriHaximus/github-workflows/.github/workflows/package-release-managment.yaml@main
21+
with:
22+
milestone: ${{ github.event.milestone.title }}
23+
description: ${{ github.event.milestone.title }}

.github/workflows/set-milestone-on-pr.yaml

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

.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
var
2-
vendor
1+
var/*
2+
!var/.gitkeep
3+
vendor/
4+
etc/qa/.phpunit.result.cache

0 commit comments

Comments
 (0)