We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/FreePeak/db-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
go.yml•1.14 KiB
name: Go Build & Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
name: Build & Test
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22'
check-latest: true
- name: Check out code
uses: actions/checkout@v3
- name: Update go.mod
run: |
go mod edit -go=1.22
go mod tidy
- name: Get dependencies
run: go mod download
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22'
check-latest: true
- name: Check out code
uses: actions/checkout@v3
- name: Update go.mod
run: |
go mod edit -go=1.22
go mod tidy
- name: Install golangci-lint
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.0.0
- name: Run golangci-lint
run: golangci-lint run --timeout=5m