Skip to content

docs: update CLI, quickstart, LLM reference for v3.6.0 + bug reporting #67

docs: update CLI, quickstart, LLM reference for v3.6.0 + bug reporting

docs: update CLI, quickstart, LLM reference for v3.6.0 + bug reporting #67

Workflow file for this run

name: CI
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.24"
cache: true
- name: Install dependencies
run: go mod download
- name: Run tests
run: go test ./... -v -race -count=1
- name: Check test coverage
run: go test ./... -coverprofile=coverage.out -covermode=atomic
- name: Upload coverage
uses: codecov/codecov-action@v4
with:
file: coverage.out
fail_ci_if_error: false
build:
name: Build
runs-on: ubuntu-latest
needs: test
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.24"
cache: true
- name: Build CLI
run: go build -o grit ./cmd/grit
- name: Verify binary
run: ./grit --help
build-matrix:
name: Cross-platform build
runs-on: ubuntu-latest
needs: test
strategy:
matrix:
include:
- goos: linux
goarch: amd64
suffix: linux-amd64
- goos: linux
goarch: arm64
suffix: linux-arm64
- goos: darwin
goarch: amd64
suffix: darwin-amd64
- goos: darwin
goarch: arm64
suffix: darwin-arm64
- goos: windows
goarch: amd64
suffix: windows-amd64.exe
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.24"
cache: true
- name: Build
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
CGO_ENABLED: 0
run: go build -ldflags="-s -w" -o grit-${{ matrix.suffix }} ./cmd/grit
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: grit-${{ matrix.suffix }}
path: grit-${{ matrix.suffix }}
retention-days: 7