Skip to content

Commit 9a8792d

Browse files
committed
ci: add blocking lint-test-build workflow with latest action versions
Add a GitHub Actions CI pipeline for pull requests and pushes to main. The workflow runs: - golangci-lint (blocking) - go test ./... - go build ./... Use latest available action and tool versions: - actions/checkout v6.0.2 - actions/setup-go v6.3.0 - golangci/golangci-lint-action v9.2.0 - golangci-lint v2.10.1 Why: - enforce consistent quality gates in CI - fail fast on lint errors - keep action dependencies current
1 parent b358dee commit 9a8792d

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
lint-test-build:
11+
name: Lint, Test, Build
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v6.0.2
17+
18+
- name: Set up Go
19+
uses: actions/setup-go@v6.3.0
20+
with:
21+
go-version-file: go.mod
22+
cache: true
23+
24+
- name: Run golangci-lint
25+
uses: golangci/golangci-lint-action@v9.2.0
26+
with:
27+
version: v2.10.1
28+
args: --timeout=5m
29+
30+
- name: Run tests
31+
run: go test ./...
32+
33+
- name: Build
34+
run: go build ./...

0 commit comments

Comments
 (0)