Skip to content

Commit 593d997

Browse files
committed
add lint job
1 parent 84da8c5 commit 593d997

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/lint.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Lint
2+
on:
3+
workflow_dispatch:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
# Limit one unit test job running per PR/Branch
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
11+
# For example, if you push multiple commits to a pull request in quick succession, only the latest workflow run will continue
12+
cancel-in-progress: true
13+
env:
14+
GOPROXY: https://proxy.golang.org
15+
GO_VERSION: '1.24.0'
16+
permissions:
17+
contents: read
18+
jobs:
19+
unit_test:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
23+
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5
24+
with:
25+
go-version: ${{env.GO_VERSION}}
26+
cache: true
27+
- name: Download Dependencies
28+
run: go mod download
29+
- name: unit test
30+
timeout-minutes: 5
31+
env:
32+
TESTSUITE: lintall
33+
run: make test
34+
continue-on-error: false
35+

0 commit comments

Comments
 (0)