-
Notifications
You must be signed in to change notification settings - Fork 101
69 lines (57 loc) · 1.46 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Lint files
on:
push:
branches:
- develop
- staging
- production
- gh-readonly-queue/**
pull_request:
branches:
- develop
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
lint-php:
name: Lint PHP files
runs-on: ubuntu-latest
steps:
- name: Check out source code
uses: actions/checkout@v4.2.2
- name: Set up PHP
uses: shivammathur/setup-php@2.30.5
with:
coverage: none
env:
fail-fast: 'true'
- name: Setup Node
uses: actions/setup-node@v4.1.0
with:
node-version: 'lts/*'
cache: npm
- name: Install PHP Dependencies
uses: ramsey/composer-install@3.0.0
- name: Lint files
run: npm run lint
lint-search-dev-tools:
name: Lint Search Dev Tools files
runs-on: ubuntu-latest
steps:
- name: Check out source code
uses: actions/checkout@v4.2.2
- name: Setup Node
uses: actions/setup-node@v4.1.0
with:
node-version: 'lts/*'
cache: npm
cache-dependency-path: search/search-dev-tools/package-lock.json
- name: Install dependencies
run: npm ci --ignore-scripts
working-directory: search/search-dev-tools
- name: Lint files
run: npm run lint
working-directory: search/search-dev-tools