Skip to content

Commit

Permalink
Introduce quality tools & migrate to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
NanoSector committed Nov 3, 2021
1 parent 8d8001c commit 98a9590
Show file tree
Hide file tree
Showing 42 changed files with 1,870 additions and 358 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Code analysis

on:
pull_request:
workflow_dispatch:

jobs:
tests:
name: PHPUnit tests
runs-on: ubuntu-latest
steps:
- uses: shivammathur/[email protected]
with:
php-version: '7.2'

- uses: actions/checkout@v2

- name: Install Dependencies
run: composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist --dev

- name: Run PHPUnit
run: composer run phpunit
static-analysis:
name: Static analysis
runs-on: ubuntu-latest
steps:
- uses: shivammathur/[email protected]
with:
php-version: '7.2'
tools: composer, cs2pr

- uses: actions/checkout@v2

- name: Install Dependencies
run: composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist --dev

- name: Run PHP Code Sniffer
run: composer run phpcs-github | cs2pr

- name: Run PHP Mess Detector
run: composer run phpmd-github
if: ${{ always() }}

- name: Run PHPStan
run: composer run phpstan
if: ${{ always() }}
84 changes: 82 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,83 @@
### JetBrains template
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf

# Generated files
.idea/**/contentModel.xml

# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml

# Gradle
.idea/**/gradle.xml
.idea/**/libraries

# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/artifacts
# .idea/compiler.xml
# .idea/jarRepositories.xml
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# *.iml
# *.ipr

# CMake
cmake-build-*/

# Mongo Explorer plugin
.idea/**/mongoSettings.xml

# File-based project format
*.iws

# IntelliJ
out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Cursive Clojure plugin
.idea/replstate.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

# Editor-based Rest Client
.idea/httpRequests

# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser

### Composer template
composer.phar
vendor/
.idea/
/vendor/

# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
# composer.lock
.phpunit.result.cache
.idea/sonarlint
composer.lock
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

57 changes: 57 additions & 0 deletions .idea/command-parser.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

145 changes: 145 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions .idea/php-test-framework.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 98a9590

Please sign in to comment.