-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from WyriHaximusNet/next-gen
- Loading branch information
Showing
27 changed files
with
7,497 additions
and
1,811 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* @WyriHaximus |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
github: WyriHaximus |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
labelPRBasedOnFilePath: | ||
"Documentation 📚": | ||
- README.md | ||
- CONTRIBUTING.md | ||
"Dependencies 📦": | ||
- Dockerfile* | ||
- composer.* | ||
- package.json | ||
- package-lock.json | ||
- yarn.lock | ||
"Docker 🐳": | ||
- Dockerfile* | ||
- .docker/**/* | ||
"Image 🖼": | ||
- "**/*.gif" | ||
- "**/*.jpg" | ||
- "**/*.jpeg" | ||
- "**/*.png" | ||
- "**/*.webp" | ||
"CSS 👩🎨": | ||
- "**/*.css" | ||
"HTML 👷♀️": | ||
- "**/*.htm" | ||
- "**/*.html" | ||
"NEON 🦹♂️": | ||
- "**/*.neon" | ||
"MarkDown 📝": | ||
- "**/*.md" | ||
"YAML 🍄": | ||
- "**/*.yml" | ||
- "**/*.yaml" | ||
"JSON 👨💼": | ||
- "**/*.json" | ||
"Go 🐹": | ||
- "**/*.go" | ||
"JavaScript 🦏": | ||
- "**/*.js" | ||
- package.json | ||
- package-lock.json | ||
- yarn.lock | ||
"PHP 🐘": | ||
- "**/*.php" | ||
- composer.* | ||
"Configuration ⚙": | ||
- .github/* | ||
"CI 🚧": | ||
- .github/workflows/* | ||
- .scrutinizer.yml | ||
"Templates 🌲": | ||
- "**/*.twig" | ||
- "**/*.tpl" | ||
"Helm ☸": | ||
- .helm/**/* | ||
"Tests 🧪": | ||
- tests/**/* | ||
"Source 🔮": | ||
- src/**/* | ||
|
||
labelerFlags: | ||
labelOnPRUpdates: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "composer" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
labels: | ||
- "Dependencies 📦" | ||
- "PHP 🐘" | ||
versioning-strategy: "widen" | ||
open-pull-requests-limit: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
repository: | ||
private: false | ||
has_issues: true | ||
has_wiki: false | ||
has_downloads: true | ||
default_branch: master | ||
allow_squash_merge: false | ||
allow_merge_commit: true | ||
allow_rebase_merge: false | ||
|
||
# Labels: define labels for Issues and Pull Requests | ||
labels: | ||
- name: "Dependencies 📦" | ||
color: 0025ff | ||
description: "Pull requests that update a dependency file" | ||
- name: "Image 🖼" | ||
color: 00ffff | ||
- name: "HTML 👷♀️" | ||
color: ffffff | ||
- name: "CSS 👩🎨" | ||
color: b3b3b3 | ||
- name: "JavaScript 🦏" | ||
color: ffff00 | ||
- name: "Go 🐹" | ||
color: 00ADD8 | ||
- name: "JSON 👨💼" | ||
color: 00ADD8 | ||
- name: "NEON 🦹♂️" | ||
color: CE3262 | ||
- name: "MarkDown 📝" | ||
color: 000000 | ||
- name: "YAML 🍄" | ||
color: ff1aff | ||
- name: "Templates 🌲" | ||
color: 009933 | ||
- name: "Helm ☸" | ||
color: 091C84 | ||
- name: "Tests 🧪" | ||
color: ffe6e6 | ||
- name: "Source 🔮" | ||
color: e6ffe6 | ||
- name: "Configuration ⚙" | ||
color: b3b3cc | ||
- name: "PHP 🐘" | ||
color: 8892BF | ||
description: "Hypertext Pre Processor" | ||
- name: "Docker 🐳" | ||
color: 0db7ed | ||
description: "Pull requests that relate to Docker" | ||
- name: "CI 🚧" | ||
color: ffff00 | ||
- name: "Feature 🏗" | ||
color: 66ff99 | ||
- name: "Documentation 📚" | ||
color: 6666ff | ||
- name: "Security 🕵️♀️" | ||
color: ff0000 | ||
- name: "Hacktoberfest 🎃" | ||
color: 152347 | ||
- name: "Bug 🐞" | ||
color: d73a4a | ||
description: "Something isn't working" | ||
oldname: bug | ||
- name: "Duplicate ♊" | ||
color: cfd3d7 | ||
description: "This issue or pull request already exists" | ||
oldname: duplicate | ||
- name: "Enhancement ✨" | ||
color: a2eeef | ||
description: "New feature or request" | ||
oldname: enhancement | ||
- name: "Good First Issue" | ||
color: 7057ff | ||
description: "Good for newcomers" | ||
oldname: "good first issue" | ||
- name: "Help Wanted" | ||
color: 008672 | ||
description: "Extra attention is needed" | ||
oldname: "help wanted" | ||
- name: Invalid | ||
color: e4e669 | ||
description: "This doesn't seem right" | ||
oldname: invalid | ||
- name: "Question ❓" | ||
color: d876e3 | ||
description: "Further information is requested" | ||
oldname: question | ||
- name: "Will not be fixed 🛑" | ||
color: ffffff | ||
description: "This will not be worked on" | ||
oldname: wontfix | ||
- name: "Sponsor Request ❤️" | ||
color: fedbf0 | ||
description: "Issue/PR opened by sponsor" | ||
|
||
branches: | ||
- name: master | ||
protection: | ||
required_pull_request_reviews: | ||
required_approving_review_count: 1 | ||
dismiss_stale_reviews: true | ||
require_code_owner_reviews: true | ||
# Required. Require status checks to pass before merging. Set to null to disable | ||
required_status_checks: | ||
# Required. Require branches to be up to date before merging. | ||
strict: true | ||
# Required. The list of status checks to require in order to merge into this branch | ||
contexts: [] | ||
# Required. Enforce all configured restrictions for administrators. Set to true to enforce required status checks for repository administrators. Set to null to disable. | ||
enforce_admins: true | ||
# Required. Restrict who can push to this branch. Team and user restrictions are only available for organization-owned repositories. Set to null to disable. | ||
restrictions: | ||
apps: [] | ||
users: [] | ||
teams: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,183 @@ | ||
name: Continuous Integration | ||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
- 'master' | ||
- 'refs/heads/v[0-9]+.[0-9]+.[0-9]+' | ||
pull_request: | ||
jobs: | ||
supported-versions-matrix: | ||
name: Supported Versions Matrix | ||
runs-on: ubuntu-latest | ||
needs: | ||
- lint-yaml | ||
- lint-json | ||
outputs: | ||
version: ${{ steps.supported-versions-matrix.outputs.version }} | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- id: supported-versions-matrix | ||
uses: WyriHaximus/github-action-composer-php-versions-in-range@v1 | ||
supported-checks-matrix: | ||
name: Supported Checks Matrix | ||
runs-on: ubuntu-latest | ||
needs: | ||
- lint-yaml | ||
- composer-install | ||
outputs: | ||
check: ${{ steps.supported-checks-matrix.outputs.check }} | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- id: supported-checks-matrix | ||
name: Generate check | ||
run: | | ||
printf "Checks found: %s\r\n" $(make task-list-ci) | ||
printf "::set-output name=check::%s" $(make task-list-ci) | ||
composer-install: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php: ${{ fromJson(needs.supported-versions-matrix.outputs.version) }} | ||
composer: [lowest, current, highest] | ||
needs: | ||
- lint-yaml | ||
- lint-json | ||
- supported-versions-matrix | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ghcr.io/wyrihaximusnet/php:${{ matrix.php }}-nts-buster-dev-root | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Cache composer packages | ||
uses: actions/cache@v1 | ||
with: | ||
path: ./vendor/ | ||
key: ${{ matrix.composer }}-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }} | ||
- name: Install Dependencies | ||
run: composer update --prefer-lowest --no-progress --ansi --no-interaction --prefer-dist -o | ||
if: matrix.composer == 'lowest' | ||
- name: Install Dependencies | ||
run: composer install --ansi --no-progress --no-interaction --prefer-dist -o | ||
if: matrix.composer == 'current' | ||
- name: Install Dependencies | ||
run: composer update --ansi --no-progress --no-interaction --prefer-dist -o | ||
if: matrix.composer == 'highest' | ||
qa: | ||
name: Run ${{ matrix.check }} on PHP ${{ matrix.php }} with ${{ matrix.composer }} dependency preference (Linux) | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php: ${{ fromJson(needs.supported-versions-matrix.outputs.version) }} | ||
composer: [lowest, current, highest] | ||
check: ${{ fromJson(needs.supported-checks-matrix.outputs.check) }} | ||
needs: | ||
- lint-yaml | ||
- lint-json | ||
- composer-install | ||
- supported-checks-matrix | ||
- supported-versions-matrix | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ghcr.io/wyrihaximusnet/php:${{ matrix.php }}-nts-buster-dev-root | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Cache composer packages | ||
uses: actions/cache@v1 | ||
with: | ||
path: ./vendor/ | ||
key: ${{ matrix.composer }}-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }} | ||
- name: Install Dependencies | ||
run: (test -f vendor && true ) || composer update --prefer-lowest --no-progress --ansi --no-interaction --prefer-dist -o | ||
if: matrix.composer == 'lowest' | ||
- name: Install Dependencies | ||
run: (test -f vendor && true ) || composer install --ansi --no-progress --no-interaction --prefer-dist -o | ||
if: matrix.composer == 'current' | ||
- name: Install Dependencies | ||
run: (test -f vendor && true ) || composer update --ansi --no-progress --no-interaction --prefer-dist -o | ||
if: matrix.composer == 'highest' | ||
- name: Fetch Tags | ||
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* || true | ||
if: matrix.check == 'backward-compatibility-check' | ||
- run: make ${{ matrix.check }} | ||
env: | ||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | ||
COVERALLS_RUN_LOCALLY: ${{ secrets.COVERALLS_RUN_LOCALLY }} | ||
unittests-directly-on-os: | ||
name: Run unit tests on PHP ${{ matrix.php }} with ${{ matrix.composer }} dependency preference (${{ matrix.os }}) | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
php: ${{ fromJson(needs.supported-versions-matrix.outputs.version) }} | ||
composer: [lowest, current, highest] | ||
needs: | ||
- lint-yaml | ||
- lint-json | ||
- composer-install | ||
- supported-versions-matrix | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Setup PHP, extensions and composer with shivammathur/setup-php | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
coverage: xdebug, pcov | ||
- name: Cache composer packages | ||
uses: actions/cache@v1 | ||
with: | ||
path: ./vendor/ | ||
key: ${{ matrix.composer }}-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }} | ||
- name: Install Dependencies | ||
run: (test -f vendor && true ) || composer update --prefer-lowest --no-progress --ansi --no-interaction --prefer-dist -o | ||
if: matrix.composer == 'lowest' | ||
- name: Install Dependencies | ||
run: (test -f vendor && true ) || composer install --ansi --no-progress --no-interaction --prefer-dist -o | ||
if: matrix.composer == 'current' | ||
- name: Install Dependencies | ||
run: (test -f vendor && true ) || composer update --ansi --no-progress --no-interaction --prefer-dist -o | ||
if: matrix.composer == 'highest' | ||
- name: Fetch Tags | ||
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* || true | ||
if: matrix.check == 'backward-compatibility-check' | ||
- run: | | ||
./vendor/bin/phpunit -c ./etc/qa/phpunit.xml | ||
env: | ||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | ||
COVERALLS_RUN_LOCALLY: ${{ secrets.COVERALLS_RUN_LOCALLY }} | ||
lint-yaml: | ||
name: Lint YAML | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: yaml-lint | ||
uses: ibiqlik/action-yamllint@v3 | ||
with: | ||
config_data: | | ||
extends: default | ||
ignore: | | ||
/.git/ | ||
rules: | ||
line-length: disable | ||
document-start: disable | ||
truthy: disable | ||
lint-json: | ||
name: Lint JSON | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: json-syntax-check | ||
uses: limitusus/json-syntax-check@v1 | ||
with: | ||
pattern: "\\.json$" | ||
check-mark: | ||
name: ✔️ | ||
needs: | ||
- lint-yaml | ||
- lint-json | ||
- qa | ||
- unittests-directly-on-os | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: echo "✔️" |
Oops, something went wrong.