1
0
Fork 0
mirror of https://github.com/imjasonh/infinite-git synced 2026-07-14 04:35:23 +00:00

Add CI workflow for PRs and pushes to main

Runs build, tests (with race detector), and go vet.

https://claude.ai/code/session_015F9BYQoCy2P2zYZBuVeXHH
This commit is contained in:
Claude 2026-04-02 07:17:13 +00:00
parent 29666530cc
commit 43e577d58d
No known key found for this signature in database

38
.github/workflows/ci.yml vendored Normal file
View file

@ -0,0 +1,38 @@
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Build
run: go build ./...
- name: Test
run: go test ./... -timeout 60s -race
vet:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Vet
run: go vet ./...