Skip to content

Commit 19cb17a

Browse files
Setup github workflows
1 parent fdf534e commit 19cb17a

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
test:
11+
name: Test
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
16+
- name: Set up Go
17+
uses: actions/setup-go@v4
18+
with:
19+
go-version: '1.23'
20+
cache: true
21+
22+
- name: Install dependencies
23+
run: go mod download
24+
25+
- name: Run tests with coverage
26+
run: go test -coverprofile=coverage.txt -covermode=atomic ./... -p 1 -race -v
27+
28+
- name: Upload coverage to Codecov
29+
uses: codecov/codecov-action@v5
30+
with:
31+
token: ${{ secrets.CODECOV_TOKEN }}
32+
slug: MegaGrindStone/mcp-web-ui
33+
34+
- name: Run golangci-lint
35+
uses: golangci/golangci-lint-action@v3
36+
with:
37+
version: latest
38+

codecov.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
ignore:
2+
- "cmd"
3+
- "internal/services"
4+
- "static"
5+
- "templates"

0 commit comments

Comments
 (0)