Skip to content

Commit 2dae0e5

Browse files
committed
add ci build job
1 parent 14fb02b commit 2dae0e5

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/go.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Unit Tests
2+
on: [push, pull_request]
3+
4+
permissions:
5+
contents: read
6+
7+
jobs:
8+
build:
9+
strategy:
10+
fail-fast: false
11+
os: [ubuntu-latest, windows-latest, macos-latest]
12+
runs-on: ${{ matrix.os }}
13+
14+
steps:
15+
- name: Check out code
16+
uses: actions/checkout@v4
17+
18+
- name: Set up Go
19+
uses: actions/setup-go@v5
20+
with:
21+
go-version-file: "go.mod"
22+
23+
- name: Download dependencies
24+
run: go mod download
25+
26+
- name: Run unit and integration tests
27+
run: go test -race ./...
28+
29+
- name: Build
30+
run: go build -v ./cmd/github-mcp-server

0 commit comments

Comments
 (0)