-
Notifications
You must be signed in to change notification settings - Fork 26
47 lines (42 loc) · 1.17 KB
/
awesome-linter.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
name: Awesome Linter
on: pull_request
jobs:
lint-js:
name: Lint JS
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14.18.1
- run: npm install --production
- run: npm run lint:js
lint-css:
name: Lint CSS
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14.18.1
- run: npm install --production
- run: npm run lint:css
lint-html:
name: Lint HTML
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14.18.1
- run: npm install --production
- run: npm run lint:html
lint-branch-name:
name: Validate branch name
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: lekterable/[email protected]
with:
allowed: |
/^[0-9]+-(?:[\d\w]){3,70}/i