From e9252b156a595e8888e18c30970d8069c6d7d1db Mon Sep 17 00:00:00 2001 From: Javier Uruen Val Date: Mon, 24 Mar 2025 09:08:21 +0100 Subject: [PATCH] add ci build job --- .github/workflows/go.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/go.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 000000000..cd67b9653 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,32 @@ +name: Unit Tests +on: [push, pull_request] + +permissions: + contents: read + +jobs: + build: + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + + runs-on: ${{ matrix.os }} + + steps: + - name: Check out code + uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version-file: "go.mod" + + - name: Download dependencies + run: go mod download + + - name: Run unit tests + run: go test -race ./... + + - name: Build + run: go build -v ./cmd/github-mcp-server