-
Notifications
You must be signed in to change notification settings - Fork 55
51 lines (41 loc) · 1.2 KB
/
pr-check.yml
File metadata and controls
51 lines (41 loc) · 1.2 KB
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
name: Pull Request Check
on: [ pull_request ]
jobs:
compliant:
runs-on: [ self-hosted, Linux, X64 ]
steps:
- uses: actions/checkout@v3
- name: Check License Header
uses: apache/skywalking-eyes/header@v0.4.0
- name: Check Spell
uses: crate-ci/typos@master
lint:
runs-on: [ self-hosted, Linux, X64 ]
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: stable
cache: false # don't use cache for self-hosted runners
- name: Golangci Lint
# https://golangci-lint.run/
uses: golangci/golangci-lint-action@v6
with:
version: latest
only-new-issues: true
typecheck:
runs-on: [ self-hosted, Linux, X64 ]
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: false # don't use cache for self-hosted runners
- name: Install dependencies
working-directory: ./ts-parser
run: npm ci
- name: Run TypeScript type check
working-directory: ./ts-parser
run: npm run typecheck