Skip to content

Commit 36e0e6b

Browse files
authored
Merge pull request #27 from WyriHaximus/next-gen-qa
Next gen qa
2 parents a7d4715 + 4aa26d7 commit 36e0e6b

27 files changed

+5163
-2915
lines changed

.editorconfig

+6
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,11 @@ trim_trailing_whitespace = true
1010
[*.json]
1111
indent_size = 2
1212

13+
[*.yml]
14+
indent_size = 2
15+
16+
[*.yaml]
17+
indent_size = 2
18+
1319
[Makefile]
1420
indent_style = tab

.gitattributes

+10-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
# Ignoring files for distribution archieves
2-
examples/ export-ignore
2+
.github/ export-ignore
3+
etc/ export-ignore
34
tests/ export-ignore
4-
.dunitconfig export-ignore
5-
.travis.yml export-ignore
6-
.gitignore export-ignore
5+
var/ export-ignore
6+
.devcontainer.json export-ignore
7+
.editorconfig export-ignore
78
.gitattributes export-ignore
8-
.scrutinizer.yml export-ignore
9-
.styleci.yml export-ignore
10-
appveyor.yml export-ignore
11-
phpunit.xml.dist export-ignore
9+
.gitignore export-ignore
10+
CONTRIBUTING.md export-ignore
11+
infection.json.dist export-ignore
12+
Makefile export-ignore
13+
README.md export-ignore

.github/CODEOWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @WyriHaximus

.github/FUNDING.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
github: WyriHaximus
1+
github: WyriHaximus

.github/boring-cyborg.yml

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
labelPRBasedOnFilePath:
2+
"Documentation 📚":
3+
- README.md
4+
- CONTRIBUTING.md
5+
"Dependencies 📦":
6+
- Dockerfile*
7+
- composer.*
8+
- package.json
9+
- package-lock.json
10+
- yarn.lock
11+
"Docker 🐳":
12+
- Dockerfile*
13+
- .docker/**/*
14+
"Image 🖼":
15+
- "**/*.gif"
16+
- "**/*.jpg"
17+
- "**/*.jpeg"
18+
- "**/*.png"
19+
- "**/*.webp"
20+
"CSS 👩‍🎨":
21+
- "**/*.css"
22+
"HTML 👷‍♀️":
23+
- "**/*.htm"
24+
- "**/*.html"
25+
"NEON 🦹‍♂️":
26+
- "**/*.neon"
27+
"MarkDown 📝":
28+
- "**/*.md"
29+
"YAML 🍄":
30+
- "**/*.yml"
31+
- "**/*.yaml"
32+
"JSON 👨‍💼":
33+
- "**/*.json"
34+
"Go 🐹":
35+
- "**/*.go"
36+
"JavaScript 🦏":
37+
- "**/*.js"
38+
- package.json
39+
- package-lock.json
40+
- yarn.lock
41+
"PHP 🐘":
42+
- "**/*.php"
43+
- composer.*
44+
"Configuration ⚙":
45+
- .github/*
46+
"CI 🚧":
47+
- .github/workflows/*
48+
- .scrutinizer.yml
49+
"Templates 🌲":
50+
- "**/*.twig"
51+
- "**/*.tpl"
52+
"Helm ☸":
53+
- .helm/**/*
54+
"Tests 🧪":
55+
- tests/**/*
56+
"Source 🔮":
57+
- src/**/*
58+
59+
labelerFlags:
60+
labelOnPRUpdates: true

.github/dependabot.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "composer"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
labels:
8+
- "Dependencies 📦"
9+
- "PHP 🐘"
10+
versioning-strategy: "increase"
11+
open-pull-requests-limit: 1

.github/settings.yml

+115
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
repository:
2+
private: false
3+
has_issues: true
4+
has_wiki: false
5+
has_downloads: true
6+
default_branch: master
7+
allow_squash_merge: false
8+
allow_merge_commit: true
9+
allow_rebase_merge: false
10+
11+
# Labels: define labels for Issues and Pull Requests
12+
labels:
13+
- name: "Dependencies 📦"
14+
color: 0025ff
15+
description: "Pull requests that update a dependency file"
16+
- name: "Image 🖼"
17+
color: 00ffff
18+
- name: "HTML 👷‍♀️"
19+
color: ffffff
20+
- name: "CSS 👩‍🎨"
21+
color: b3b3b3
22+
- name: "JavaScript 🦏"
23+
color: ffff00
24+
- name: "Go 🐹"
25+
color: 00ADD8
26+
- name: "JSON 👨‍💼"
27+
color: 00ADD8
28+
- name: "NEON 🦹‍♂️"
29+
color: CE3262
30+
- name: "MarkDown 📝"
31+
color: 000000
32+
- name: "YAML 🍄"
33+
color: ff1aff
34+
- name: "Templates 🌲"
35+
color: 009933
36+
- name: "Helm ☸"
37+
color: 091C84
38+
- name: "Tests 🧪"
39+
color: ffe6e6
40+
- name: "Source 🔮"
41+
color: e6ffe6
42+
- name: "Configuration ⚙"
43+
color: b3b3cc
44+
- name: "PHP 🐘"
45+
color: 8892BF
46+
description: "Hypertext Pre Processor"
47+
- name: "Docker 🐳"
48+
color: 0db7ed
49+
description: "Pull requests that relate to Docker"
50+
- name: "CI 🚧"
51+
color: ffff00
52+
- name: "Feature 🏗"
53+
color: 66ff99
54+
- name: "Documentation 📚"
55+
color: 6666ff
56+
- name: "Security 🕵️‍♀️"
57+
color: ff0000
58+
- name: "Hacktoberfest 🎃"
59+
color: 152347
60+
- name: "Bug 🐞"
61+
color: d73a4a
62+
description: "Something isn't working"
63+
oldname: bug
64+
- name: "Duplicate ♊"
65+
color: cfd3d7
66+
description: "This issue or pull request already exists"
67+
oldname: duplicate
68+
- name: "Enhancement ✨"
69+
color: a2eeef
70+
description: "New feature or request"
71+
oldname: enhancement
72+
- name: "Good First Issue"
73+
color: 7057ff
74+
description: "Good for newcomers"
75+
oldname: "good first issue"
76+
- name: "Help Wanted"
77+
color: 008672
78+
description: "Extra attention is needed"
79+
oldname: "help wanted"
80+
- name: Invalid
81+
color: e4e669
82+
description: "This doesn't seem right"
83+
oldname: invalid
84+
- name: "Question ❓"
85+
color: d876e3
86+
description: "Further information is requested"
87+
oldname: question
88+
- name: "Will not be fixed 🛑"
89+
color: ffffff
90+
description: "This will not be worked on"
91+
oldname: wontfix
92+
- name: "Sponsor Request ❤️"
93+
color: fedbf0
94+
description: "Issue/PR opened by sponsor"
95+
96+
branches:
97+
- name: master
98+
protection:
99+
required_pull_request_reviews:
100+
required_approving_review_count: 1
101+
dismiss_stale_reviews: true
102+
require_code_owner_reviews: true
103+
# Required. Require status checks to pass before merging. Set to null to disable
104+
required_status_checks:
105+
# Required. Require branches to be up to date before merging.
106+
strict: true
107+
# Required. The list of status checks to require in order to merge into this branch
108+
contexts: []
109+
# Required. Enforce all configured restrictions for administrators. Set to true to enforce required status checks for repository administrators. Set to null to disable.
110+
enforce_admins: true
111+
# Required. Restrict who can push to this branch. Team and user restrictions are only available for organization-owned repositories. Set to null to disable.
112+
restrictions:
113+
apps: []
114+
users: []
115+
teams: []

.github/workflows/ci.yml

+144
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
name: Continuous Integration
2+
on:
3+
push:
4+
pull_request:
5+
jobs:
6+
package-name:
7+
name: Package Name
8+
runs-on: ubuntu-latest
9+
needs:
10+
- lint-json
11+
outputs:
12+
package-name: ${{ steps.package-name.outputs.package-name }}
13+
steps:
14+
- uses: actions/checkout@v1
15+
- id: package-name
16+
run: |
17+
printf "::set-output name=package-name::[\"%s\"]" $(docker run --rm -v "`pwd`:`pwd`" jess/jq jq -r -c '.name' "${GITHUB_WORKSPACE}/composer.json")
18+
supported-versions-matrix:
19+
name: Supported Versions Matrix
20+
runs-on: ubuntu-latest
21+
needs:
22+
- lint-yaml
23+
- lint-json
24+
outputs:
25+
version: ${{ steps.supported-versions-matrix.outputs.version }}
26+
steps:
27+
- uses: actions/checkout@v1
28+
- id: supported-versions-matrix
29+
uses: WyriHaximus/github-action-composer-php-versions-in-range@v1
30+
supported-checks-matrix:
31+
name: Supported Checks Matrix
32+
runs-on: ubuntu-latest
33+
needs:
34+
- lint-yaml
35+
- composer-install
36+
outputs:
37+
check: ${{ steps.supported-checks-matrix.outputs.check }}
38+
steps:
39+
- uses: actions/checkout@v1
40+
- id: supported-checks-matrix
41+
name: Generate check
42+
run: |
43+
printf "Checks found: %s\r\n" $(make task-list-ci)
44+
printf "::set-output name=check::%s" $(make task-list-ci)
45+
composer-install:
46+
strategy:
47+
fail-fast: false
48+
matrix:
49+
php: ${{ fromJson(needs.supported-versions-matrix.outputs.version) }}
50+
composer: [lowest, current, highest]
51+
needs:
52+
- lint-yaml
53+
- lint-json
54+
- supported-versions-matrix
55+
runs-on: ubuntu-latest
56+
container:
57+
image: ghcr.io/wyrihaximusnet/php:${{ matrix.php }}-nts-buster-dev-root
58+
steps:
59+
- uses: actions/checkout@v1
60+
- name: Cache composer packages
61+
uses: actions/cache@v1
62+
with:
63+
path: ./vendor/
64+
key: ${{ matrix.composer }}-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }}
65+
- name: Install Dependencies
66+
run: composer update --prefer-lowest --no-progress --ansi --no-interaction --prefer-dist -o
67+
if: matrix.composer == 'lowest'
68+
- name: Install Dependencies
69+
run: composer install --ansi --no-progress --no-interaction --prefer-dist -o
70+
if: matrix.composer == 'current'
71+
- name: Install Dependencies
72+
run: composer update --ansi --no-progress --no-interaction --prefer-dist -o
73+
if: matrix.composer == 'highest'
74+
qa:
75+
strategy:
76+
fail-fast: false
77+
matrix:
78+
php: ${{ fromJson(needs.supported-versions-matrix.outputs.version) }}
79+
composer: [lowest, current, highest]
80+
check: ${{ fromJson(needs.supported-checks-matrix.outputs.check) }}
81+
needs:
82+
- lint-yaml
83+
- lint-json
84+
- composer-install
85+
- supported-checks-matrix
86+
- supported-versions-matrix
87+
runs-on: ubuntu-latest
88+
container:
89+
image: ghcr.io/wyrihaximusnet/php:${{ matrix.php }}-nts-buster-dev-root
90+
steps:
91+
- uses: actions/checkout@v1
92+
- name: Cache composer packages
93+
uses: actions/cache@v1
94+
with:
95+
path: ./vendor/
96+
key: ${{ matrix.composer }}-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }}
97+
- name: Install Dependencies
98+
run: (test -f vendor && true ) || composer update --prefer-lowest --no-progress --ansi --no-interaction --prefer-dist -o
99+
if: matrix.composer == 'lowest'
100+
- name: Install Dependencies
101+
run: (test -f vendor && true ) || composer install --ansi --no-progress --no-interaction --prefer-dist -o
102+
if: matrix.composer == 'current'
103+
- name: Install Dependencies
104+
run: (test -f vendor && true ) || composer update --ansi --no-progress --no-interaction --prefer-dist -o
105+
if: matrix.composer == 'highest'
106+
- name: Fetch Tags
107+
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* || true
108+
if: matrix.check == 'backward-compatibility-check'
109+
- run: make ${{ matrix.check }}
110+
env:
111+
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
112+
COVERALLS_RUN_LOCALLY: ${{ secrets.COVERALLS_RUN_LOCALLY }}
113+
lint-yaml:
114+
name: Lint YAML
115+
runs-on: ubuntu-latest
116+
steps:
117+
- uses: actions/checkout@v1
118+
- name: yaml-lint
119+
uses: ibiqlik/action-yamllint@v3
120+
with:
121+
config_data: |
122+
extends: default
123+
rules:
124+
line-length: disable
125+
document-start: disable
126+
truthy: disable
127+
lint-json:
128+
name: Lint JSON
129+
runs-on: ubuntu-latest
130+
steps:
131+
- uses: actions/checkout@v1
132+
- name: json-syntax-check
133+
uses: limitusus/json-syntax-check@v1
134+
with:
135+
pattern: "\\.json$"
136+
check-mark:
137+
name: ✔️
138+
needs:
139+
- lint-yaml
140+
- lint-json
141+
- qa
142+
runs-on: ubuntu-latest
143+
steps:
144+
- run: echo "✔️"

0 commit comments

Comments
 (0)