Skip to content

Commit b3543ec

Browse files
chore: bump go version, bump dependencies, remove travis (#16)
* chore: bump go version, bump dependencies, remove travis * chore: Add GitHub actions * chore: bump version, remove fixed versions everywhere
1 parent 07be859 commit b3543ec

14 files changed

+1018
-420
lines changed

.github/workflows/main.yml

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
tests:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
go: [ '1.18', '1.*' ]
17+
name: Tests
18+
steps:
19+
- uses: actions/checkout@v3
20+
- name: Setup Go
21+
uses: actions/setup-go@v3
22+
with:
23+
go-version: ${{ matrix.go }}
24+
- name: Get dependencies
25+
run: go get -v -t -d ./...
26+
- name: Test
27+
run: CGO_ENABLED=1 go test -race ./...
28+
static-checks:
29+
runs-on: ubuntu-latest
30+
strategy:
31+
matrix:
32+
go: [ '1.*' ]
33+
name: Static checks
34+
steps:
35+
- uses: actions/checkout@v3
36+
- name: Setup Go
37+
uses: actions/setup-go@v3
38+
with:
39+
go-version: ${{ matrix.go }}
40+
- name: Get dependencies
41+
run: go get -v -t -d ./...
42+
- name: Go Vet
43+
run: go vet ./...
44+
- name: Go Fmt
45+
run: |
46+
fmt=$(gofmt -l .)
47+
test -z $fmt || (echo "please run gofmt" ; echo $fmt ; exit 1)
48+
- name: Go Staticcheck
49+
run: go run honnef.co/go/tools/cmd/staticcheck@latest ./...
50+
- name: Goimports
51+
run: |
52+
go run golang.org/x/tools/cmd/goimports@latest -w .
53+
git diff --quiet || (echo 'goimports requires code cleanup:' ; git diff ; exit 1)

.travis.yml

-5
This file was deleted.

Makefile

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1-
VERSION=2.1.3
1+
VERSION=2.2.0
22

3-
.PHONY: docker dockerpublish test
3+
.PHONY: docker dockerpublish test run run-demo
44

55
default: test
66

7+
run:
8+
go run vistecture-dashboard.go
9+
10+
run-demo:
11+
go run vistecture-dashboard.go -config=example/project.yml -Demo
12+
713
test:
814
go test -vet=all ./...
915

Readme.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ Works together with [Vistecture](https://github.com/aoepeople/vistecture) and sh
99

1010
## Usage ##
1111

12-
You can use the Dockerimage: `aoepeople/vistecture-dashboard:2.1.3`
12+
You can use the Dockerimage: `aoepeople/vistecture-dashboard`
1313

1414
### Example Project
1515

1616
```
17-
docker run --rm -ti -p 8080:8080 aoepeople/vistecture-dashboard:2.1.3
17+
docker run --rm -ti -p 8080:8080 aoepeople/vistecture-dashboard
1818
```
1919

2020
### Custom Project
@@ -23,7 +23,7 @@ Just copy your vistecture definitions into /vistecture/project.yml
2323
The following Dockerfile could be used to build an image running the dashboard for your defined architecture:
2424

2525
```dockerfile
26-
FROM aoepeople/vistecture-dashboard:2.1.3
26+
FROM aoepeople/vistecture-dashboard
2727

2828
COPY definition /definition
2929
CMD ["-config", "/definition/project.yml"]

example/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
FROM aoepeople/vistecture-dashboard:2.1.3
1+
FROM aoepeople/vistecture-dashboard
22
COPY . /definition
33
CMD ["-config", "/definition/project.yml"]

go.mod

+52-13
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,58 @@
11
module github.com/AOEpeople/vistecture-dashboard/v2
22

3-
go 1.13
3+
go 1.18
44

55
require (
6-
github.com/AOEpeople/vistecture/v2 v2.0.10
7-
github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973 // indirect
8-
github.com/imdario/mergo v0.3.8 // indirect
6+
github.com/AOEpeople/vistecture/v2 v2.5.2
7+
github.com/prometheus/client_golang v1.12.2
8+
k8s.io/api v0.24.1
9+
k8s.io/apimachinery v0.24.1
10+
k8s.io/client-go v0.24.1
11+
)
12+
13+
require (
14+
github.com/PuerkitoBio/purell v1.1.1 // indirect
15+
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect
16+
github.com/beorn7/perks v1.0.1 // indirect
17+
github.com/cespare/xxhash/v2 v2.1.2 // indirect
18+
github.com/davecgh/go-spew v1.1.1 // indirect
19+
github.com/emicklei/go-restful v2.9.5+incompatible // indirect
20+
github.com/go-logr/logr v1.2.0 // indirect
21+
github.com/go-openapi/jsonpointer v0.19.5 // indirect
22+
github.com/go-openapi/jsonreference v0.19.5 // indirect
23+
github.com/go-openapi/swag v0.19.14 // indirect
24+
github.com/gogo/protobuf v1.3.2 // indirect
25+
github.com/golang/protobuf v1.5.2 // indirect
26+
github.com/google/gnostic v0.5.7-v3refs // indirect
27+
github.com/google/gofuzz v1.1.0 // indirect
28+
github.com/imdario/mergo v0.3.13 // indirect
29+
github.com/josharian/intern v1.0.0 // indirect
30+
github.com/json-iterator/go v1.1.12 // indirect
31+
github.com/mailru/easyjson v0.7.6 // indirect
932
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
10-
github.com/prometheus/client_golang v0.8.0
11-
github.com/prometheus/client_model v0.0.0-20171117100541-99fa1f4be8e5 // indirect
12-
github.com/prometheus/common v0.0.0-20180518154759-7600349dcfe1 // indirect
13-
github.com/prometheus/procfs v0.0.0-20180408092902-8b1c2da0d56d // indirect
14-
golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6 // indirect
15-
golang.org/x/time v0.0.0-20191024005414-555d28b269f0 // indirect
16-
k8s.io/api v0.17.0
17-
k8s.io/apimachinery v0.17.0
18-
k8s.io/client-go v0.17.0
33+
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
34+
github.com/modern-go/reflect2 v1.0.2 // indirect
35+
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
36+
github.com/prometheus/client_model v0.2.0 // indirect
37+
github.com/prometheus/common v0.32.1 // indirect
38+
github.com/prometheus/procfs v0.7.3 // indirect
39+
github.com/russross/blackfriday v1.6.0 // indirect
40+
github.com/spf13/pflag v1.0.5 // indirect
41+
golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd // indirect
42+
golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8 // indirect
43+
golang.org/x/sys v0.0.0-20220209214540-3681064d5158 // indirect
44+
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect
45+
golang.org/x/text v0.3.7 // indirect
46+
golang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect
47+
google.golang.org/appengine v1.6.7 // indirect
48+
google.golang.org/protobuf v1.27.1 // indirect
49+
gopkg.in/inf.v0 v0.9.1 // indirect
50+
gopkg.in/yaml.v2 v2.4.0 // indirect
51+
gopkg.in/yaml.v3 v3.0.0 // indirect
52+
k8s.io/klog/v2 v2.60.1 // indirect
53+
k8s.io/kube-openapi v0.0.0-20220328201542-3ee0da9b0b42 // indirect
54+
k8s.io/utils v0.0.0-20220210201930-3a6ce19ff2f9 // indirect
55+
sigs.k8s.io/json v0.0.0-20211208200746-9f7c6b3444d2 // indirect
56+
sigs.k8s.io/structured-merge-diff/v4 v4.2.1 // indirect
57+
sigs.k8s.io/yaml v1.2.0 // indirect
1958
)

0 commit comments

Comments
 (0)