Skip to content

Commit 28e86b4

Browse files
committed
add eslinter and golang linter
1 parent de8bd85 commit 28e86b4

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/build-samples-json.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,36 @@ jobs:
2424
with:
2525
args: "format --check"
2626

27+
js-ts-lint:
28+
runs-on: ubuntu-latest
29+
steps:
30+
- name: Checkout code
31+
uses: actions/checkout@v4
32+
33+
- name: Set up Node.js
34+
uses: actions/setup-node@v4
35+
with:
36+
node-version: '20'
37+
38+
- name: Run ESLint (JS/TS only)
39+
run: npx eslint "samples/**/*.{js,ts,jsx,tsx}"
40+
41+
go-lint:
42+
runs-on: ubuntu-latest
43+
steps:
44+
- name: Checkout code
45+
uses: actions/checkout@v4
46+
47+
- name: Set up Golang
48+
uses: actions/setup-go@v5
49+
with:
50+
go-version: stable
51+
52+
- name: Run golangci-lint
53+
uses: golangci/golangci-lint-action@v8
54+
with:
55+
version: latest
56+
working-directory: ./samples
2757

2858
build-json:
2959
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)