Skip to content

Commit

Permalink
Merge pull request #57 from Apiki/feature/php7.4
Browse files Browse the repository at this point in the history
Feature/php7.4
  • Loading branch information
elvishp2006 authored May 8, 2020
2 parents 984e8ca + 7f5abf6 commit 497fdd4
Show file tree
Hide file tree
Showing 54 changed files with 6,865 additions and 2,256 deletions.
8 changes: 8 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
/.editorconfig export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.phpqa.yml export-ignore
/.releaserc.yml export-ignore
/.sami.php export-ignore
/.scrutinizer.yml export-ignore
/.travis.yml export-ignore
/.vscode export-ignore
/README.md export-ignore
/commitlint.config.js export-ignore
/makefile export-ignore
/package.json export-ignore
/phpcs.xml.dist export-ignore
/phpmd.xml export-ignore
/phpstan.neon export-ignore
/phpunit.xml.dist export-ignore
/psalm.xml export-ignore
/renovate.json export-ignore
/tests export-ignore
/yarn.lock export-ignore
17 changes: 17 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: CI

on:
push:
branches: [ master ]

jobs:
release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Action For Semantic Release
uses: cycjimmy/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
114 changes: 114 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,117 @@ Thumbs.db
.history

# End of https://www.gitignore.io/api/visualstudiocode

# Created by https://www.gitignore.io/api/node
# Edit at https://www.gitignore.io/?templates=node

### Node ###
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache

# next.js build output
.next

# nuxt.js build output
.nuxt

# rollup.js default build output
dist/

# Uncomment the public line if your project uses Gatsby
# https://nextjs.org/blog/next-9-1#public-directory-support
# https://create-react-app.dev/docs/using-the-public-folder/#docsNav
# public

# Storybook build outputs
.out
.storybook-out

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# Temporary folders
tmp/
temp/

# End of https://www.gitignore.io/api/node

# PHP Q.A.
phpstan-phpqa.neon
11 changes: 11 additions & 0 deletions .phpqa.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
phpqa:
output: cli
tools: phpcs:0,phpcpd:0,phpstan:0
ignoredDirs: node_modules,vendor,tests

phpcs:
standard: phpcs.xml.dist

phpcpd:
minLines: 5
minTokens: 70
4 changes: 4 additions & 0 deletions .releaserc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
plugins:
- "@semantic-release/commit-analyzer"
- "@semantic-release/github"
- "@semantic-release/release-notes-generator"
3 changes: 3 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ build_failure_conditions:
- 'patches.label("Doc Comments").exists' # No doc comments patches allowed
- 'patches.label("Spacing").exists' # No spacing patches allowed
build:
environment:
php:
version: 7.4
dependencies:
override:
- composer install --ignore-platform-reqs --no-interaction
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: php
php:
- '7.2'
- '7.4'

branches:
only:
Expand Down
8 changes: 7 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
{
"phpSniffer.executablesFolder": "./vendor/bin/",
"phpSniffer.standard": "./phpcs.xml.dist"
"phpSniffer.standard": "./phpcs.xml.dist",
"intelephense.files.maxSize": 9000000,
"workbench.colorCustomizations": {
"activityBar.background": "#29301C",
"titleBar.activeBackground": "#394428",
"titleBar.activeForeground": "#FAFBF8"
}
}
1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = { extends: ['@commitlint/config-conventional'] };
15 changes: 11 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,21 @@
"license": "GPL-2.0-only",
"require": {
"cedaro/wp-plugin": "0.4.0",
"dusank/knapsack": "10.0.0",
"php": ">=7.2",
"psr/log": "1.1.3"
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "0.6.0",
"mockery/mockery": "1.3.1",
"phpcompatibility/phpcompatibility-wp": "2.1.0",
"phpunit/phpunit": "9.1.4",
"squizlabs/php_codesniffer": "3.5.5",
"wp-coding-standards/wpcs": "2.2.1"
"wp-coding-standards/wpcs": "2.2.1",
"slevomat/coding-standard": "^6.3",
"edgedesign/phpqa": "^1.23",
"php-stubs/wordpress-stubs": "^5.4",
"szepeviktor/phpstan-wordpress": "^0.6.0",
"nette/neon": "^3.1",
"vimeo/psalm": "^3.11"
},
"autoload": {
"psr-4": {
Expand All @@ -31,7 +35,10 @@
"install-codestandards": [
"Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin::run"
],
"lint": "phpcs",
"lint": [
"phpqa",
"psalm"
],
"lint:fix": "phpcbf",
"test": "phpunit"
}
Expand Down
Loading

0 comments on commit 497fdd4

Please sign in to comment.