-
Notifications
You must be signed in to change notification settings - Fork 203
50 lines (40 loc) · 1.1 KB
/
ci.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
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
env:
GO_VERSION: '1.17.5'
jobs:
markdown-lint:
runs-on: ubuntu-latest
container: node:14
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install mdl
run: apt update && apt-get install ruby-full -y && gem install chef-utils -v 16.6.14 && gem install mdl -v 0.11.0
- name: Lint markdown files
run: find ./ -name "*.md" | grep -v '.github' | xargs mdl -r ~MD001,~MD004,~MD005,~MD006,~MD007,~MD010,~MD013,~MD022,~MD023,~MD024,~MD025,~MD029,~MD031,~MD032,~MD033,~MD034,~MD036
golang-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
- name: Set up Golang
uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}
- name: Run go fmt test
run: hack/verify-gofmt.sh
env:
GO111MODULE: auto
- name: Build the pixiu binariy
run: go build -v ./...
- name: Run pixiu unit test
run: go test -v ./...