Skip to content

Commit

Permalink
WIP - Working on Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidLambauer committed Dec 5, 2022
1 parent 5a35a18 commit 98b986e
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/linter.yml
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

0 comments on commit 98b986e

Please sign in to comment.