-
Notifications
You must be signed in to change notification settings - Fork 34
49 lines (43 loc) · 972 Bytes
/
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
name: Lint
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
golangci:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
with:
go-version: "1.22.5"
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.56.2
js-sdk-lint:
name: JS SDK Lint
runs-on: ubuntu-latest
timeout-minutes: 10
defaults:
run:
working-directory: ./sdks/js
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Setup pnpm 8
uses: pnpm/action-setup@v2
with:
version: 8.6.9
- name: Setup Node.js 20.x
uses: actions/setup-node@v2
with:
node-version: 20.x
- name: Install Dependencies 🔧
run: pnpm i
- name: Check Lint 🔧
run: npm run lint