Skip to content

Commit 7b0047f

Browse files
committed
update jobs
1 parent 4ab4455 commit 7b0047f

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ on:
55
pull_request:
66

77
jobs:
8-
ci:
9-
name: CI
8+
build-test:
9+
name: ci
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748 # v3.0.0
@@ -20,3 +20,19 @@ jobs:
2020

2121
- name: Build
2222
run: go build .
23+
24+
golangci:
25+
name: lint
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748 # v2.4.0
29+
- uses: actions/setup-go@f6164bd8c8acb4a71fb2791a8b6c4024ff038dab # v2.2.0
30+
with:
31+
go-version: 1.18
32+
check-latest: true
33+
- name: golangci-lint
34+
uses: golangci/golangci-lint-action@b517f99ae23d86ecc4c0dec08dcf48d2336abc29 # v3
35+
timeout-minutes: 5
36+
with:
37+
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
38+
version: v1.45.2

0 commit comments

Comments
 (0)