Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce validation-coding-standards.yml #2452

Merged
merged 18 commits into from
Dec 2, 2022
58 changes: 58 additions & 0 deletions .github/workflows/validation-coding-standards.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: 'Validation / Coding Standards'

on:
pull_request:
branches:
- master

jobs:
php:
runs-on: ubuntu-latest
name: PHP
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Composer Install
run: composer install --prefer-dist --optimize-autoloader

- name: Install dependencies
run: composer lint

css:
runs-on: ubuntu-latest
name: CSS
steps:
- name: Checkout
uses: actions/checkout@v3

EvanHerman marked this conversation as resolved.
Show resolved Hide resolved
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'yarn'

- name: Install dependencies
run: yarn install --immutable

- name: Run lint
run: yarn lint:css

js:
runs-on: ubuntu-latest
name: JS
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'yarn'

EvanHerman marked this conversation as resolved.
Show resolved Hide resolved
- name: Install dependencies
run: yarn install --immutable

- name: Run lint
run: yarn lint:js