-
Notifications
You must be signed in to change notification settings - Fork 12
44 lines (34 loc) · 969 Bytes
/
linters.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
name: Code Linters
env:
NODE_VERSION: "20"
on:
push:
branches:
- trunk
pull_request:
branches:
- trunk
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: "Install node v${{ env.NODE_VERSION }}"
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
- name: npm ci
run: npm ci
- name: ES lint
run: npm run lint:js
- name: Set PHP version
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
tools: cs2pr
coverage: none
- name: composer install
run: composer install
- name: PHPCS check
run: './vendor/bin/phpcs . -q --report=checkstyle --runtime-set testVersion 7.0- | cs2pr'