-
Notifications
You must be signed in to change notification settings - Fork 27
52 lines (52 loc) · 1.18 KB
/
lint.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
41
42
43
44
45
46
47
48
49
50
51
52
name: Linting
on:
pull_request:
branches:
- master
- develop
push:
branches:
- master
- develop
jobs:
stylelint:
name: stylelint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: stylelint
uses: reviewdog/action-stylelint@v1
with:
reporter: github-pr-review
stylelint_input: "**/*.css"
stylelint_config: ".stylelintrc.js"
fail_on_error: true
eslint:
name: eslint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18"
- name: eslint
uses: reviewdog/action-eslint@v1
with:
reporter: github-pr-review
fail_on_error: true
phpcs:
name: phpcs
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set PHP version
uses: shivammathur/setup-php@v2
with:
php-version: "8.1"
coverage: none
tools: composer:v2
- name: composer install
run: composer install
- name: PHPCS check
run: ./vendor/bin/phpcs .