Skip to content

Commit

Permalink
Merge pull request #96 from mjrider/actions
Browse files Browse the repository at this point in the history
Adding linting jobs in github action
  • Loading branch information
Potherca committed Jan 18, 2020
2 parents bb64a27 + 787df9c commit 8bcaa7c
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/linting.yaml
@@ -0,0 +1,56 @@
---
name: Linting jobs

# yamllint disable-line rule:truthy
on:
- push
- pull_request

jobs:
validate-composer:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: Validate composer.json and composer.lock
uses: "docker://composer"
with:
args: "composer validate --no-check-lock"

lint-json:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: Lint php
uses: "docker://pipelinecomponents/jsonlint:latest"
with:
args: "find . -not -path './.git/*' -name '*.json' -type f -exec jsonlint --quiet {} ;"

yamllint:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: Check yaml for issues
uses: pipeline-components/yamllint@master

php-codesniffer:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: Check php composer for security issues
uses: pipeline-components/php-codesniffer@master

lint-remark:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: Check markdown
uses: pipeline-components/remark-lint@master

php-compitibility:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: Check php compatibility
uses: pipeline-components/php-codesniffer@master
with:
options: "-s -p --colors --extensions=php --standard=PHPCompatibility --runtime-set testVersion 5.3-7.4"
6 changes: 6 additions & 0 deletions .yamllint
@@ -0,0 +1,6 @@
---
extends: default
rules:
line-length:
level: warning
max: 120

0 comments on commit 8bcaa7c

Please sign in to comment.