-
Notifications
You must be signed in to change notification settings - Fork 46
43 lines (41 loc) · 1021 Bytes
/
lint_go.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
name: Lint Go
on:
push:
branches:
- dev*
paths:
- "**.go"
- ".github/workflows/lint_go.yml"
pull_request:
branches:
- dev*
paths:
- "**.go"
- ".github/workflows/lint_go.yml"
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Golang Version
id: version
run: |
source buildScript/init/version.sh
echo go_version=$GO_VERSION >> $GITHUB_OUTPUT
- uses: actions/setup-go@v5
with:
go-version: ${{ steps.version.outputs.go_version }}
cache-dependency-path: libcore/go.sum
# - uses: golangci/golangci-lint-action@v6
# with:
# skip-cache: true
# working-directory: ./libcore/
# version: latest
# args: --timeout=30m --config="./.golangci.yml"
# install-mode: binary
- name: Run Test
run: |
make test_go