@@ -16,12 +16,12 @@ jobs:
16
16
runs-on : ubuntu-latest
17
17
steps :
18
18
- name : Checkout code
19
- uses : actions/checkout@v4
19
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
20
20
with :
21
21
persist-credentials : false
22
22
23
23
- name : Set up Go
24
- uses : actions/setup-go@v5
24
+ uses : actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
25
25
with :
26
26
go-version : " 1.24"
27
27
cache : true
@@ -34,12 +34,12 @@ jobs:
34
34
runs-on : ubuntu-latest
35
35
steps :
36
36
- name : Checkout code
37
- uses : actions/checkout@v4
37
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
38
38
with :
39
39
persist-credentials : false
40
40
41
41
- name : Set up Go
42
- uses : actions/setup-go@v5
42
+ uses : actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
43
43
with :
44
44
go-version : " 1.24"
45
45
cache : true
52
52
runs-on : ubuntu-latest
53
53
steps :
54
54
- name : Checkout code
55
- uses : actions/checkout@v4
55
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
56
56
with :
57
57
persist-credentials : false
58
58
65
65
compose-file : " docker-compose.yaml"
66
66
67
67
- name : Set up Go
68
- uses : actions/setup-go@v5
68
+ uses : actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
69
69
with :
70
70
go-version : " 1.24"
71
71
cache : true
@@ -85,12 +85,12 @@ jobs:
85
85
contents : read
86
86
steps :
87
87
- name : Checkout code
88
- uses : actions/checkout@v4
88
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
89
89
with :
90
90
persist-credentials : false
91
91
92
92
- name : Set up Go
93
- uses : actions/setup-go@v5
93
+ uses : actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
94
94
with :
95
95
go-version : " 1.24"
96
96
cache : true
@@ -118,15 +118,16 @@ jobs:
118
118
contents : read
119
119
steps :
120
120
- name : Checkout code
121
- uses : actions/checkout@v4
122
-
123
- - name : Set up Python
124
- uses : actions/setup-python@v5
125
- with :
126
- python-version : " 3.13"
121
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
127
122
128
123
- name : Install uv
129
- run : pip install uv
124
+ uses : astral-sh/setup-uv@f0ec1fc3b38f5e7cd731bb6ce540c5af426746bb # v6.1.0
125
+
126
+ - name : Set up Go
127
+ uses : actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
128
+ with :
129
+ go-version : " 1.24"
130
+ cache : true
130
131
131
132
- name : Install Python dependencies
132
133
run : |
@@ -151,10 +152,14 @@ jobs:
151
152
152
153
- name : Start MCP server in background
153
154
run : |
155
+ go build ./cmd/mcp-grafana
154
156
nohup go run ./cmd/mcp-grafana -t sse > mcp.log 2>&1 &
155
- sleep 30
156
157
157
158
- name : Run Python e2e tests
158
159
run : |
159
160
cd tests
160
161
uv run pytest
162
+
163
+ - if : failure()
164
+ name : Print MCP logs
165
+ run : cat mcp.log
0 commit comments