Skip to content

Initial commit

Initial commit #1

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.21"
- name: Download dependencies
run: go mod download
- name: Run tests
run: go test ./...
- name: Check formatting
run: |
if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then
echo "Code not formatted properly"
gofmt -s -l .
exit 1
fi
- name: Run go vet
run: go vet ./...
- name: Build
run: go build -o ai-git .
- name: Test binary
run: ./ai-git --version