fix: README license, URL, add CI/CD and basic tests

This commit is contained in:
2026-04-10 22:04:10 -07:00
parent daa8464273
commit 6fae82946a
3 changed files with 87 additions and 4 deletions
+49
View File
@@ -0,0 +1,49 @@
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@v5
with:
go-version: '1.24'
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./... || echo "No tests yet"
- name: Lint
run: go vet ./...
release:
needs: test
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.24'
- name: Build all platforms
run: make build-all
- name: Release
uses: softprops/action-gh-release@v1
with:
files: go_mcp_server_searxng-*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}