forked from mage-os/mageos-magento2
-
Notifications
You must be signed in to change notification settings - Fork 0
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
5a35a18
commit 98b986e
Showing
1 changed file
with
38 additions
and
0 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,38 @@ | ||
name: Linter | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- '*.yml' | ||
- '*.yaml' | ||
- '*.xml' | ||
- '*.php' | ||
|
||
jobs: | ||
linter: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
# Check out the repository | ||
- uses: actions/checkout@v2 | ||
|
||
# Install the required version of Node.js | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: '12' | ||
|
||
# Install the YAML, XML, and PHP linters | ||
- run: npm install -g yaml-linter xml-linter php-linter | ||
|
||
# Run the YAML Linter | ||
- name: 🚀 Run YAML Linter | ||
run: yaml-linter app/code/**/*.yml | ||
|
||
# Run the XML Linter | ||
- name: 🚀 Run XML Linter | ||
run: xml-linter app/code/**/*.xml | ||
|
||
# Run the PHP Linter | ||
- name: 🚀 Run PHP Linter | ||
run: php-linter app/code/**/*.php |