Skip to content

Commit 250bdc8

Browse files
authored
Merge pull request #112 from scalyr/DSET-2067
Dset 2067
2 parents 3762e80 + 6d3e1a3 commit 250bdc8

File tree

8 files changed

+358
-391
lines changed

8 files changed

+358
-391
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
frontend:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v3
1616
- uses: actions/[email protected]
1717
with:
18-
node-version: "16.x"
18+
node-version: '16.x'
1919
# Ref: https://github.com/actions/cache/blob/main/examples.md#node---yarn
2020
- name: Get yarn cache path
2121
id: yarn-cache-path
@@ -35,25 +35,23 @@ jobs:
3535
backend:
3636
runs-on: ubuntu-latest
3737
steps:
38-
- uses: actions/checkout@v2
39-
- uses: actions/setup-go@v3
38+
- uses: actions/checkout@v3
39+
- uses: actions/setup-go@v4
4040
with:
41-
go-version: "1.16"
42-
# Ref: https://github.com/actions/cache/blob/main/examples.md#linux-1
43-
- uses: actions/cache@v3
41+
go-version: 'stable'
42+
# `mage format` would reformat files
43+
- name: gofmt check
44+
run: test -z "$(gofmt -l pkg)"
45+
#- uses: magefile/mage-action@v2
46+
# with:
47+
# args: lint
48+
- uses: golangci/golangci-lint-action@v3
4449
with:
45-
path: |
46-
~/.cache/go-build
47-
~/go/pkg/mod
48-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
49-
restore-keys: |
50-
${{ runner.os }}-go-
51-
- name: Run tests and generate coverage report
52-
uses: magefile/mage-action@v2
50+
version: 'latest'
51+
working-directory: pkg
52+
- uses: magefile/mage-action@v2
5353
with:
54-
version: latest
55-
args: coverage
54+
args: test
5655
- uses: magefile/mage-action@v2
5756
with:
58-
version: latest
59-
args: buildAll
57+
args: buildall

.github/workflows/release.yml

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Release
22
on:
33
push:
44
tags:
5-
- "[0-9]+.[0-9]+.[0-9]+"
5+
- '[0-9]+.[0-9]+.[0-9]+'
66
permissions:
77
# Write permissions required to create a release
88
# Ref: https://stackoverflow.com/a/69941765
@@ -11,10 +11,10 @@ jobs:
1111
release:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v3
1515
- uses: actions/[email protected]
1616
with:
17-
node-version: "16.x"
17+
node-version: '16.x'
1818
# Ref: https://github.com/actions/cache/blob/main/examples.md#node---yarn
1919
- name: Get yarn cache path
2020
id: yarn-cache-path
@@ -31,27 +31,25 @@ jobs:
3131
run: yarn install --frozen-lockfile
3232
- name: Build and test
3333
run: yarn build
34-
- uses: actions/setup-go@v3
34+
- uses: actions/setup-go@v4
3535
with:
36-
go-version: "stable"
37-
# Ref: https://github.com/actions/cache/blob/main/examples.md#linux-1
38-
- uses: actions/cache@v3
36+
go-version: 'stable'
37+
# `mage format` would reformat files
38+
- name: gofmt check
39+
run: test -z "$(gofmt -l pkg)"
40+
#- uses: magefile/mage-action@v2
41+
# with:
42+
# args: lint
43+
- uses: golangci/golangci-lint-action@v3
3944
with:
40-
path: |
41-
~/.cache/go-build
42-
~/go/pkg/mod
43-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
44-
restore-keys: |
45-
${{ runner.os }}-go-
46-
- name: Run tests and generate coverage report
47-
uses: magefile/mage-action@v2
45+
version: 'latest'
46+
working-directory: pkg
47+
- uses: magefile/mage-action@v2
4848
with:
49-
version: latest
50-
args: coverage
49+
args: test
5150
- uses: magefile/mage-action@v2
5251
with:
53-
version: latest
54-
args: buildAll
52+
args: buildall
5553
- name: Sign plugin
5654
run: npx @grafana/toolkit plugin:sign
5755
env:

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 3.1.0
4+
5+
- Bumped Golang version to 1.20
6+
- Bumped dependent packages (namely grafana-plugin-sdk-go) to latest
7+
38
## 3.0.9
49

510
- #110: Do not set autoAlign (formerly the default) for plots to allow specification via query options

go.mod

Lines changed: 64 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,69 @@
11
module github.com/scalyr/scalyr-grafana-datasource-plugin
22

3-
go 1.16
3+
go 1.20
44

55
require (
6-
github.com/grafana/grafana-plugin-sdk-go v0.126.0
7-
github.com/magefile/mage v1.12.1 // indirect
8-
golang.org/x/time v0.0.0-20220922220347-f3bd1da661af // indirect
9-
moul.io/http2curl v1.0.0 // indirect
6+
github.com/grafana/grafana-plugin-sdk-go v0.155.0
7+
golang.org/x/time v0.3.0
8+
)
9+
10+
require (
11+
github.com/BurntSushi/toml v1.2.1 // indirect
12+
github.com/apache/arrow/go/arrow v0.0.0-20211112161151-bc219186db40 // indirect
13+
github.com/beorn7/perks v1.0.1 // indirect
14+
github.com/cespare/xxhash/v2 v2.1.2 // indirect
15+
github.com/cheekybits/genny v1.0.0 // indirect
16+
github.com/chromedp/cdproto v0.0.0-20220208224320-6efb837e6bc2 // indirect
17+
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
18+
github.com/elazarl/goproxy v0.0.0-20220115173737-adb46da277ac // indirect
19+
github.com/fatih/color v1.7.0 // indirect
20+
github.com/getkin/kin-openapi v0.94.0 // indirect
21+
github.com/ghodss/yaml v1.0.0 // indirect
22+
github.com/go-openapi/jsonpointer v0.19.5 // indirect
23+
github.com/go-openapi/swag v0.19.15 // indirect
24+
github.com/golang/protobuf v1.5.2 // indirect
25+
github.com/golang/snappy v0.0.3 // indirect
26+
github.com/google/flatbuffers v2.0.0+incompatible // indirect
27+
github.com/google/go-cmp v0.5.9 // indirect
28+
github.com/google/uuid v1.3.0 // indirect
29+
github.com/gorilla/mux v1.8.0 // indirect
30+
github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 // indirect
31+
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect
32+
github.com/hashicorp/go-hclog v0.14.1 // indirect
33+
github.com/hashicorp/go-plugin v1.4.3 // indirect
34+
github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d // indirect
35+
github.com/josharian/intern v1.0.0 // indirect
36+
github.com/json-iterator/go v1.1.12 // indirect
37+
github.com/klauspost/compress v1.13.1 // indirect
38+
github.com/magefile/mage v1.14.0 // indirect
39+
github.com/mailru/easyjson v0.7.7 // indirect
40+
github.com/mattetti/filebuffer v1.0.1 // indirect
41+
github.com/mattn/go-colorable v0.1.4 // indirect
42+
github.com/mattn/go-isatty v0.0.10 // indirect
43+
github.com/mattn/go-runewidth v0.0.9 // indirect
44+
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
45+
github.com/mitchellh/go-testing-interface v1.0.0 // indirect
46+
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
47+
github.com/modern-go/reflect2 v1.0.2 // indirect
48+
github.com/oklog/run v1.0.0 // indirect
49+
github.com/olekukonko/tablewriter v0.0.5 // indirect
50+
github.com/pierrec/lz4/v4 v4.1.8 // indirect
51+
github.com/prometheus/client_golang v1.14.0 // indirect
52+
github.com/prometheus/client_model v0.3.0 // indirect
53+
github.com/prometheus/common v0.40.0 // indirect
54+
github.com/prometheus/procfs v0.8.0 // indirect
55+
github.com/russross/blackfriday/v2 v2.1.0 // indirect
56+
github.com/unknwon/bra v0.0.0-20200517080246-1e3013ecaff8 // indirect
57+
github.com/unknwon/com v1.0.1 // indirect
58+
github.com/unknwon/log v0.0.0-20150304194804-e617c87089d3 // indirect
59+
github.com/urfave/cli v1.22.12 // indirect
60+
golang.org/x/net v0.8.0 // indirect
61+
golang.org/x/sys v0.6.0 // indirect
62+
golang.org/x/text v0.8.0 // indirect
63+
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
64+
google.golang.org/genproto v0.0.0-20210630183607-d20f26d13c79 // indirect
65+
google.golang.org/grpc v1.41.0 // indirect
66+
google.golang.org/protobuf v1.28.1 // indirect
67+
gopkg.in/fsnotify/fsnotify.v1 v1.4.7 // indirect
68+
gopkg.in/yaml.v2 v2.4.0 // indirect
1069
)

0 commit comments

Comments
 (0)