Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
andergmartins committed Oct 8, 2020
2 parents c8809b0 + 100c977 commit d155631
Show file tree
Hide file tree
Showing 29 changed files with 2,428 additions and 396 deletions.
5 changes: 2 additions & 3 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ labels: 'bug'
assignees: ''

---

Your issue may already be reported!
Please search on the [issue track](../) before creating one.
<!--- Your issue may already be reported! -->
<!--- Please search on the [issue track](../) before creating one. -->

## Expected Behavior

Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/phplint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: PHPLint

on: [push]

jobs:
phplint:

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v1
with:
php-version: '7.4'
extensions: intl

- name: Update the composer.lock file
run: composer update --lock

- name: Validate composer.json and composer.lock
run: composer validate

- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest

- name: Check syntax errors
run: ./vendor/bin/phplint
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "publishpress/publishpress-authors",
"type": "wordpress-plugin",
"license": "GPL-2.0-or-later",
"description": "",
"authors": [
{
"name": "PublishPress",
Expand Down Expand Up @@ -55,7 +56,8 @@
"publishpress/publishpress-plugin-builder": "^1.2",
"phpmd/phpmd": "^2.8",
"squizlabs/php_codesniffer": "^3.5",
"sebastian/phpcpd": "^5.0"
"sebastian/phpcpd": "^5.0",
"overtrue/phplint": "^2.1"
},
"scripts": {
"cs-check": "vendor/bin/phpcs --standard=PSR12 ./src/ publishpress-authors.php --colors",
Expand Down
Loading

0 comments on commit d155631

Please sign in to comment.