-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (31 loc) · 1 KB
/
code-check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Coding Standards checks
on:
pull_request:
branches:
- '*'
jobs:
php:
name: Lint PHP, JavaScript, and CSS files
runs-on: ubuntu-latest
steps:
- name: Checkout source branch.
uses: actions/checkout@v2
- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: '16'
registry-url: https://registry.npmjs.org/
- name: Install NPM root dependencies
run: npm install
- name: Install NPM dependencies for the Rareview theme
run: npm install -w=rareview-theme
- name: Lint the JS files for the Rareview theme
run: npm run lint:js -w=rareview-theme
- name: Lint the JSON files for the Rareview theme
run: npm run lint:json -w=rareview-theme
- name: Lint the CSS files for the Rareview theme
run: npm run lint:style -w=rareview-theme
- name: Install Composer Dependencies
run: composer install
- name: Run Lint
run: composer lint