Skip to content

Commit 6a9ede1

Browse files
committed
chore: GA action
1 parent b9f4e46 commit 6a9ede1

File tree

3 files changed

+74
-1
lines changed

3 files changed

+74
-1
lines changed

.github/workflows/ci.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: CI Pipeline
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
- name: Setup go
16+
uses: actions/setup-go@v5
17+
with:
18+
go-version-file: go.mod
19+
- name: Setup Mage
20+
uses: magefile/mage-action@v3
21+
with:
22+
install-only: true
23+
24+
- name: Build
25+
run: |
26+
mage -v build
27+
28+
test:
29+
runs-on: ubuntu-latest
30+
needs: build
31+
steps:
32+
- name: Checkout
33+
uses: actions/checkout@v4
34+
- name: Setup go
35+
uses: actions/setup-go@v5
36+
with:
37+
go-version-file: go.mod
38+
- name: Install dependencies
39+
run: |
40+
sudo apt update
41+
sudo apt install -y gcc
42+
43+
- name: Setup Mage
44+
uses: magefile/mage-action@v3
45+
with:
46+
install-only: true
47+
48+
- name: Test
49+
run: |
50+
CGO_ENABLED=1 mage -v testRace

.github/workflows/lint.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: golangci-lint
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
golangci:
13+
name: lint
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-go@v5
18+
with:
19+
go-version: stable
20+
- name: golangci-lint
21+
uses: golangci/golangci-lint-action@v6
22+
with:
23+
version: v1.54.2

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)