File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 golangci-version : v2.8.0
1010
1111jobs :
12- all :
12+ lint :
1313 runs-on : ubuntu-latest
1414 steps :
1515 - name : Install Go
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 :
You can’t perform that action at this time.
0 commit comments