Skip to content

Commit b44d158

Browse files
intel352claude
andcommitted
ci: add CI workflow for push/PR on main
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent f368779 commit b44d158

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: CI
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
branches: [main]
7+
env:
8+
GOPRIVATE: github.com/GoCodeAlone/*
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.26'
17+
- name: Configure Git for private repos
18+
run: git config --global url."https://x-access-token:${{ secrets.RELEASES_TOKEN }}@github.com/".insteadOf "https://github.com/"
19+
- run: go test -race ./...
20+
- run: go vet ./...

0 commit comments

Comments
 (0)