forked from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (45 loc) · 1.15 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
---
name: Linting suite
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
permissions:
contents: read
jobs:
super-linter:
name: Super Linter
runs-on: ubuntu-latest
steps:
- name: Repository checkout
uses: actions/checkout@96f53100ba2a5449eb71d2e6604bbcd94b9449b5
with:
fetch-depth: 0
- name: Lint Code Base
uses: github/super-linter@759885f47664595a56db33fee55d64a393e5bad8
env:
VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: main
VALIDATE_TYPESCRIPT_STANDARD: false
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
lint:
name: Linters
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@96f53100ba2a5449eb71d2e6604bbcd94b9449b5
- name: Use Node.js 18.x
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8
with:
node-version: 18
cache: yarn
- name: Install
run: yarn install
- name: Build
run: yarn build
- name: Prettier
run: yarn run format-check
- name: ESLint
run: yarn run lint
...