forked from opensearch-project/opensearch-go
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (26 loc) · 932 Bytes
/
Copy pathlint.yml
File metadata and controls
30 lines (26 loc) · 932 Bytes
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
name: Lint check
on: [push, pull_request]
env:
GITHUB_ACTIONS: true
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6
with: { go-version-file: 'go.mod' }
- name: golangci-lint
uses: golangci/golangci-lint-action@82606bf257cbaff209d206a39f5134f0cfbfd2ee # v9
with:
version: v2.12.2
args: --fix --build-tags "integration core plugins plugin_security plugin_index_management multinode"
prettify:
name: Prettify
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Install dependencies
run: npm i -g prettier
- name: Check markdown files
run: prettier --prose-wrap never --print-width 300 --check **/*.md