···11+name: Test
22+33+on:
44+ push:
55+ branches: [main]
66+ pull_request:
77+88+jobs:
99+ test:
1010+ name: Test
1111+ runs-on: ubuntu-latest
1212+1313+ steps:
1414+ - name: Checkout code
1515+ uses: actions/checkout@v4
1616+1717+ - name: Set up Go
1818+ uses: actions/setup-go@v5
1919+2020+ - name: Download dependencies
2121+ run: go mod download
2222+2323+ - name: Run tests
2424+ run: go test -v -race ./...
2525+2626+ lint:
2727+ name: Lint
2828+ runs-on: ubuntu-latest
2929+3030+ steps:
3131+ - name: Checkout code
3232+ uses: actions/checkout@v4
3333+3434+ - name: Set up Go
3535+ uses: actions/setup-go@v5
3636+3737+ - name: Run golangci-lint
3838+ uses: golangci/golangci-lint-action@v6
3939+ with:
4040+ version: latest
+4
.gitignore
···88# Test binary, built with `go test -c`
99*.test
10101111+# Coverage files
1212+coverage.out
1313+coverage.html
1414+1115# Output of the go build
1216ollama-proxy
1317
+2
README.md
···11# Ollama Proxy
2233+[](https://github.com/julienrbrt/ollama-proxy/actions/workflows/test.yml)
44+35A lightweight Go reverse proxy for Ollama with Bearer token authentication.
4657## Features