Skip to content

Commit e0fc9df

Browse files
committed
chore: GA action
1 parent d74ec1f commit e0fc9df

File tree

2 files changed

+49
-1
lines changed

2 files changed

+49
-1
lines changed

.github/workflows/ci.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/grafana/grafana-plugin-sdk-go
22

3-
go 1.22.0
3+
go 1.22
44

55
require (
66
github.com/apache/arrow/go/v15 v15.0.2

0 commit comments

Comments
 (0)