-
-
Notifications
You must be signed in to change notification settings - Fork 2
77 lines (75 loc) · 2.06 KB
/
analyze.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
70
71
72
73
74
75
76
name: Analyze
on:
push:
branches: [ master, next ]
pull_request:
branches: next
schedule:
- cron: '38 22 * * 6'
jobs:
codeql:
name: CodeQL
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
steps:
- uses: actions/checkout@v3
- uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
- uses: github/codeql-action/autobuild@v2
- uses: github/codeql-action/analyze@v2
commitlint:
name: CommitLint
if: contains(fromJson('["push", "pull_request"]'), github.event_name)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: wagoid/[email protected]
with:
configFile: '.github/commitlint.config.cjs'
eslint:
name: ESLint
if: contains(fromJson('["push", "pull_request"]'), github.event_name)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: yarn install
- uses: reviewdog/action-eslint@v1
with:
reporter: github-check
tsc:
name: TSC
if: contains(fromJson('["push", "pull_request"]'), github.event_name)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: cp settings.example.json settings.json
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm i -g npm@8 && npm i && npx genversion --es6 --semi src/lib/util/version.ts
- uses: EPMatt/[email protected]
with:
reporter: github-pr-review
prettier:
name: Prettier
if: contains(fromJson('["push", "pull_request"]'), github.event_name)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: creyD/[email protected]
with:
commit_message: 'refactor: prettify'
prettier_options: --write **/*.ts