-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b661fde
commit 13374f9
Showing
35 changed files
with
4,763 additions
and
4,321 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,51 @@ | ||
name: "Continuous integration" | ||
|
||
on: | ||
push: | ||
branches: | ||
- "master" | ||
- "develop" | ||
tags: | ||
- "*" | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
lint: | ||
name: "Lint" | ||
runs-on: "ubuntu-latest" | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- {php-version: "7.4"} | ||
steps: | ||
- name: "Checkout" | ||
uses: "actions/checkout@v3" | ||
- name: "Setup PHP" | ||
uses: "shivammathur/setup-php@v2" | ||
with: | ||
php-version: "${{ matrix.php-version }}" | ||
coverage: "none" | ||
tools: "composer, cs2pr" | ||
- name: "Get Composer cache directory" | ||
id: "composer-cache" | ||
run: | | ||
echo "::set-output name=dir::$(composer config cache-files-dir)" | ||
- name: "Restore dependencies cache" | ||
uses: "actions/cache@v3" | ||
with: | ||
path: "${{ steps.composer-cache.outputs.dir }}" | ||
key: "${{ github.job }}-${{ matrix.php-version }}-dependencies-${{ hashFiles('**/composer.lock') }}" | ||
- name: "Install Composer dependencies" | ||
run: | | ||
composer install --ansi --no-interaction --no-progress --prefer-dist | ||
- name: "PHP Parallel Lint" | ||
run: | | ||
vendor/bin/parallel-lint --colors --checkstyle --exclude ./vendor/ . | cs2pr | ||
- name: "PHP_CodeSniffer" | ||
run: | | ||
vendor/bin/phpcs -q --report=checkstyle | cs2pr | ||
- name: "Check for missing/outdated headers" | ||
run: | | ||
vendor/bin/licence-headers-check --ansi --no-interaction |
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,17 @@ | ||
<?xml version="1.0"?> | ||
<ruleset> | ||
<file>.</file> | ||
<exclude-pattern>/.git/</exclude-pattern> | ||
<exclude-pattern type="relative">^vendor/</exclude-pattern> | ||
|
||
<arg name="colors" /> | ||
<arg name="extensions" value="php" /> | ||
<arg value="p" /> | ||
<arg name="warning-severity" value="0" /> | ||
|
||
<rule ref="PSR12"> | ||
<exclude name="Generic.Files.LineLength" /> | ||
<exclude name="PSR1.Classes.ClassDeclaration.MissingNamespace" /> | ||
</rule> | ||
<rule ref="Generic.Arrays.ArrayIndent"></rule> | ||
</ruleset> |
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
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
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
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
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
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
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
Oops, something went wrong.