Skip to content

Commit 170e91d

Browse files
committed
chore: add more ci checks
1 parent e4ba257 commit 170e91d

File tree

4 files changed

+53
-6
lines changed

4 files changed

+53
-6
lines changed

.github/workflows/pr-check.yml

Lines changed: 40 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,48 @@ on: [ pull_request ]
44

55
jobs:
66
compliant:
7-
runs-on: ubuntu-latest
7+
runs-on: [ self-hosted, Linux, X64 ]
88
steps:
9-
- uses: actions/checkout@v4
9+
- uses: actions/checkout@v3
1010

1111
- name: Check License Header
1212
uses: apache/skywalking-eyes/[email protected]
13-
env:
14-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1513

16-
# - name: Check Spell
17-
# uses: crate-ci/typos@master
14+
- name: Check Spell
15+
uses: crate-ci/typos@master
16+
17+
lint:
18+
runs-on: [ self-hosted, Linux, X64 ]
19+
steps:
20+
- uses: actions/checkout@v4
21+
- name: Set up Go
22+
uses: actions/setup-go@v5
23+
with:
24+
go-version: stable
25+
cache: false # don't use cache for self-hosted runners
26+
27+
- name: Golangci Lint
28+
# https://golangci-lint.run/
29+
uses: golangci/golangci-lint-action@v6
30+
with:
31+
version: latest
32+
only-new-issues: true
33+
34+
typecheck:
35+
runs-on: [ self-hosted, Linux, X64 ]
36+
steps:
37+
- uses: actions/checkout@v4
38+
39+
- name: Setup Node.js
40+
uses: actions/setup-node@v4
41+
with:
42+
node-version: 'lts/*'
43+
cache: false # don't use cache for self-hosted runners
44+
45+
- name: Install dependencies
46+
working-directory: ./ts-parser
47+
run: npm ci
48+
49+
- name: Run TypeScript type check
50+
working-directory: ./ts-parser
51+
run: npm run typecheck

.golangci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
run:
2+
skip-dirs:
3+
- testdata
4+
- testrepo
5+
- sentry
6+
skip-files:
7+
- ".*_test\\.go$"

.licenserc.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,8 @@ header:
77
- '**/*.go'
88
- '**/*.s'
99

10+
paths-ignore:
11+
- 'testdata/**'
12+
- 'testrepo/**'
13+
1014
comment: on-failure

.typos.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[files]
2+
extend-exclude = ["testdata/**", "testrepo/**", "sentry/**"]

0 commit comments

Comments
 (0)