File tree Expand file tree Collapse file tree 2 files changed +56
-0
lines changed Expand file tree Collapse file tree 2 files changed +56
-0
lines changed Original file line number Diff line number Diff line change 1+ name : golangci-lint
2+ on :
3+ push :
4+ branches : [main]
5+ pull_request :
6+ branches : [main]
7+ workflow_dispatch :
8+
9+ permissions :
10+ contents : read
11+ # Optional: allow read access to pull requests. Use with `only-new-issues` option.
12+ # pull-requests: read
13+
14+ jobs :
15+ golangci :
16+ name : lint
17+ runs-on : ubuntu-latest
18+ steps :
19+ - name : Checkout
20+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
21+
22+ - name : Set up Go (from go.mod)
23+ uses : actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
24+ with :
25+ go-version-file : go.mod
26+
27+ - name : golangci-lint
28+ uses : golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # 8.0.0
29+ with :
30+ version : v2.1
Original file line number Diff line number Diff line change 1+ name : Unit Tests
2+
3+ on :
4+ push :
5+ branches : [main]
6+ pull_request :
7+ branches : [main]
8+ workflow_dispatch :
9+
10+ jobs :
11+ test :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - name : Checkout
15+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
16+
17+ - name : Set up Go (from go.mod)
18+ uses : actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
19+ with :
20+ go-version-file : go.mod
21+
22+ - name : Install dependencies
23+ run : go mod download
24+
25+ - name : Run tests
26+ run : go test ./... -v
You can’t perform that action at this time.
0 commit comments