File tree Expand file tree Collapse file tree 2 files changed +49
-1
lines changed Expand file tree Collapse file tree 2 files changed +49
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : CI Pipeline
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ pull_request :
8
+
9
+ jobs :
10
+ build_lint_test :
11
+ runs-on : ubuntu-latest
12
+
13
+ steps :
14
+ - name : Checkout code
15
+ uses : actions/checkout@v3
16
+
17
+ - name : Set up Go
18
+ uses : actions/setup-go@v4
19
+ with :
20
+ go-version : " 1.22"
21
+
22
+ - name : Install Mage
23
+ run : |
24
+ go install github.com/magefile/mage@latest
25
+ echo "$HOME/go/bin" >> $GITHUB_PATH # Add Go binaries to the PATH
26
+
27
+ - name : Install golangci-lint
28
+ run : |
29
+ # Install golangci-lint in the user's home directory
30
+ wget -qO - https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $HOME/go/bin
31
+ echo "$HOME/go/bin" >> $GITHUB_PATH # Add golangci-lint to the PATH
32
+
33
+ - name : Build
34
+ run : |
35
+ mage -v build
36
+
37
+ - name : Lint
38
+ run : |
39
+ mage -v lint
40
+
41
+ - name : Install dependencies
42
+ run : |
43
+ sudo apt update
44
+ sudo apt install -y gcc
45
+
46
+ - name : Test
47
+ run : |
48
+ CGO_ENABLED=1 mage -v testRace
Original file line number Diff line number Diff line change 1
1
module github.com/grafana/grafana-plugin-sdk-go
2
2
3
- go 1.22.0
3
+ go 1.22
4
4
5
5
require (
6
6
github.com/apache/arrow/go/v15 v15.0.2
You can’t perform that action at this time.
0 commit comments