Skip to content

Commit 47bad53

Browse files
milos85vasicclaude
andcommitted
ci: add GitHub Actions and GitLab CI workflows
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 91209ef commit 47bad53

2 files changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
branches: [main, master]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-go@v5
15+
with:
16+
go-version: '1.24'
17+
- run: go vet ./...
18+
- run: go test ./... -race -count=1 -timeout 120s
19+
- run: go build ./...

.gitlab-ci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
image: golang:1.24
2+
3+
stages:
4+
- test
5+
6+
test:
7+
stage: test
8+
script:
9+
- go vet ./...
10+
- go test ./... -race -count=1 -timeout 120s
11+
- go build ./...

0 commit comments

Comments
 (0)