-
Notifications
You must be signed in to change notification settings - Fork 6
52 lines (40 loc) · 1.01 KB
/
go-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
50
51
52
name: Lint
defaults:
run:
shell: bash
on:
push:
branches:
- '**'
jobs:
lint-markdown:
name: "🧹 Markdown"
continue-on-error: true
runs-on: ubuntu-latest
steps:
- name: 🛒 Checkout Code
uses: actions/checkout@v3
- name: 📦 Install Node.js and npm
uses: actions/setup-node@v3
with:
node-version: '20.0.0'
- name: 📚 Install markdownlint-cli
run: npm install -g markdownlint-cli
- name: 🖊️ Run markdownlint
run: find . -name '*.md' -exec markdownlint {} +
lint_go:
name: "️️🕵️ Golang"
runs-on: ubuntu-latest
steps:
- name: 🛒 Checkout Code
uses: actions/checkout@v3
- name: 🚀 Set up Go
uses: actions/[email protected]
with:
go-version: '1.21.4'
cache: true
check-latest: true
- name: 🕵️♂️ Run GolangCI-Lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.54