Skip to content

Commit 01c70a5

Browse files
committed
github action lint parallel
1 parent 5910ff0 commit 01c70a5

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ env:
99
golangci-version: v2.8.0
1010

1111
jobs:
12-
all:
12+
lint:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Install Go
@@ -28,6 +28,21 @@ jobs:
2828
uses: golangci/golangci-lint-action@v9
2929
with:
3030
version: ${{ env.golangci-version }}
31+
build-and-test:
32+
runs-on: ubuntu-latest
33+
steps:
34+
- name: Install Go
35+
uses: actions/setup-go@v6
36+
with:
37+
go-version: ${{ env.go-version }}
38+
- name: Checkout code
39+
uses: actions/checkout@v6
40+
with:
41+
# By default, actions/checkout will persist the GITHUB_TOKEN, so that further
42+
# steps in the job can perform authenticated git commands (that is: WRITE to
43+
# the repo). Following the Principle of least privilege, we disable this as long
44+
# as we don't need it.
45+
persist-credentials: false
3146
- run: go build ./...
3247
- run: go test -coverprofile=coverate.out ./...
3348
env:

0 commit comments

Comments
 (0)