Skip to content

Commit f187784

Browse files
authored
Codebase maintenance (#60)
* Remove firebase files * Remove CI * go mod tidy * go get -u ./... * Add GitHub actions test * fix workflow * Update Go version(1.24) * Remove staticcheck
1 parent 23c27f5 commit f187784

File tree

9 files changed

+124
-1018
lines changed

9 files changed

+124
-1018
lines changed

.firebaserc

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/dagger.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
11+
strategy:
12+
matrix:
13+
go-version: [1.24]
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Set up Go
19+
uses: actions/setup-go@v5
20+
with:
21+
go-version: ${{ matrix.go-version }}
22+
cache: true
23+
24+
- name: Download dependencies
25+
run: go mod download
26+
27+
- name: Verify dependencies
28+
run: go mod verify
29+
30+
- name: Run tests
31+
run: go test -v -race -coverprofile=coverage.out ./...
32+
33+
- name: Run go vet
34+
run: go vet ./...
35+
36+
- name: Run go fmt check
37+
run: |
38+
if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then
39+
echo "The following files are not formatted:"
40+
gofmt -s -l .
41+
exit 1
42+
fi
43+
44+
- name: Upload coverage to Codecov
45+
uses: codecov/codecov-action@v4
46+
with:
47+
file: ./coverage.out
48+
flags: unittests
49+
name: codecov-umbrella
50+
fail_ci_if_error: false

ci/cmd/main.go

Lines changed: 0 additions & 51 deletions
This file was deleted.

firebase.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

firestore.indexes.json

Lines changed: 0 additions & 26 deletions
This file was deleted.

firestore.rules

Lines changed: 0 additions & 8 deletions
This file was deleted.

go.mod

Lines changed: 26 additions & 101 deletions
Original file line numberDiff line numberDiff line change
@@ -1,117 +1,42 @@
11
module github.com/FlowingSPDG/Got5
22

3-
go 1.20
3+
go 1.24
4+
5+
toolchain go1.24.6
46

57
require (
6-
dagger.io/dagger v0.4.0
7-
github.com/aws/aws-sdk-go-v2 v1.17.1
8-
github.com/bwmarrin/discordgo v0.26.1
9-
github.com/disgoorg/disgo v0.13.22
10-
github.com/disgoorg/snowflake/v2 v2.0.1
11-
github.com/gin-gonic/gin v1.9.1
12-
github.com/gofiber/fiber/v2 v2.39.0
13-
github.com/stretchr/testify v1.8.4
14-
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2
8+
github.com/gin-gonic/gin v1.10.1
9+
golang.org/x/xerrors v0.0.0-20240903120638-7835f813f4da
1510
)
1611

1712
require (
18-
cloud.google.com/go/compute/metadata v0.2.1 // indirect
19-
github.com/Khan/genqlient v0.5.0 // indirect
20-
github.com/Microsoft/go-winio v0.5.2 // indirect
21-
github.com/agext/levenshtein v1.2.3 // indirect
22-
github.com/andybalholm/brotli v1.0.4 // indirect
23-
github.com/aws/smithy-go v1.13.4 // indirect
24-
github.com/bytedance/sonic v1.9.1 // indirect
25-
github.com/cenkalti/backoff/v4 v4.1.3 // indirect
26-
github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311 // indirect
27-
github.com/containerd/console v1.0.3 // indirect
28-
github.com/containerd/containerd v1.6.9 // indirect
29-
github.com/containerd/continuity v0.3.0 // indirect
30-
github.com/containerd/ttrpc v1.1.0 // indirect
31-
github.com/containerd/typeurl v1.0.2 // indirect
32-
github.com/dagger/dagger v0.3.3 // indirect
33-
github.com/dagger/graphql v0.0.0-20221102000338-24d5e47d3b72 // indirect
34-
github.com/dagger/graphql-go-tools v0.0.0-20221102001222-e68b44170936 // indirect
35-
github.com/davecgh/go-spew v1.1.1 // indirect
36-
github.com/disgoorg/json v1.0.0 // indirect
37-
github.com/disgoorg/log v1.2.0 // indirect
38-
github.com/docker/cli v20.10.17+incompatible // indirect
39-
github.com/docker/distribution v2.8.1+incompatible // indirect
40-
github.com/docker/docker v20.10.17+incompatible // indirect
41-
github.com/docker/docker-credential-helpers v0.6.4 // indirect
42-
github.com/docker/go-connections v0.4.0 // indirect
43-
github.com/docker/go-units v0.4.0 // indirect
44-
github.com/gabriel-vasile/mimetype v1.4.2 // indirect
45-
github.com/gin-contrib/sse v0.1.0 // indirect
46-
github.com/go-logr/logr v1.2.3 // indirect
47-
github.com/go-logr/stdr v1.2.2 // indirect
13+
github.com/bytedance/gopkg v0.1.3 // indirect
14+
github.com/bytedance/sonic v1.14.1 // indirect
15+
github.com/bytedance/sonic/loader v0.3.0 // indirect
16+
github.com/cloudwego/base64x v0.1.6 // indirect
17+
github.com/gabriel-vasile/mimetype v1.4.10 // indirect
18+
github.com/gin-contrib/sse v1.1.0 // indirect
4819
github.com/go-playground/locales v0.14.1 // indirect
4920
github.com/go-playground/universal-translator v0.18.1 // indirect
50-
github.com/go-playground/validator/v10 v10.14.0 // indirect
51-
github.com/goccy/go-json v0.10.2 // indirect
52-
github.com/gofrs/flock v0.8.1 // indirect
53-
github.com/gogo/googleapis v1.4.1 // indirect
54-
github.com/gogo/protobuf v1.3.2 // indirect
55-
github.com/golang/protobuf v1.5.2 // indirect
56-
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
57-
github.com/gorilla/websocket v1.5.0 // indirect
58-
github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 // indirect
59-
github.com/grpc-ecosystem/grpc-gateway/v2 v2.11.2 // indirect
60-
github.com/iancoleman/strcase v0.2.0 // indirect
21+
github.com/go-playground/validator/v10 v10.27.0 // indirect
22+
github.com/goccy/go-json v0.10.5 // indirect
6123
github.com/json-iterator/go v1.1.12 // indirect
62-
github.com/klauspost/compress v1.15.9 // indirect
63-
github.com/klauspost/cpuid/v2 v2.2.4 // indirect
64-
github.com/leodido/go-urn v1.2.4 // indirect
65-
github.com/mattn/go-colorable v0.1.13 // indirect
66-
github.com/mattn/go-isatty v0.0.19 // indirect
67-
github.com/mattn/go-runewidth v0.0.14 // indirect
68-
github.com/mitchellh/go-homedir v1.1.0 // indirect
69-
github.com/moby/buildkit v0.10.5 // indirect
70-
github.com/moby/locker v1.0.1 // indirect
71-
github.com/moby/sys/signal v0.7.0 // indirect
24+
github.com/klauspost/cpuid/v2 v2.3.0 // indirect
25+
github.com/kr/pretty v0.2.1 // indirect
26+
github.com/leodido/go-urn v1.4.0 // indirect
27+
github.com/mattn/go-isatty v0.0.20 // indirect
7228
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
7329
github.com/modern-go/reflect2 v1.0.2 // indirect
74-
github.com/morikuni/aec v1.0.0 // indirect
75-
github.com/opencontainers/go-digest v1.0.0 // indirect
76-
github.com/opencontainers/image-spec v1.0.3-0.20211202183452-c5a74bcca799 // indirect
77-
github.com/pelletier/go-toml/v2 v2.0.8 // indirect
78-
github.com/pkg/errors v0.9.1 // indirect
79-
github.com/pmezard/go-difflib v1.0.0 // indirect
80-
github.com/rivo/uniseg v0.2.0 // indirect
81-
github.com/rs/zerolog v1.28.0 // indirect
82-
github.com/sasha-s/go-csync v0.0.0-20210812194225-61421b77c44b // indirect
83-
github.com/sirupsen/logrus v1.9.0 // indirect
84-
github.com/tonistiigi/fsutil v0.0.0-20220115021204-b19f7f9cb274 // indirect
85-
github.com/tonistiigi/units v0.0.0-20180711220420-6950e57a87ea // indirect
86-
github.com/tonistiigi/vt100 v0.0.0-20210615222946-8066bb97264f // indirect
30+
github.com/pelletier/go-toml/v2 v2.2.4 // indirect
8731
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
88-
github.com/ugorji/go/codec v1.2.11 // indirect
89-
github.com/valyala/bytebufferpool v1.0.0 // indirect
90-
github.com/valyala/fasthttp v1.40.0 // indirect
91-
github.com/valyala/tcplisten v1.0.0 // indirect
92-
github.com/vektah/gqlparser/v2 v2.5.1 // indirect
93-
go.opencensus.io v0.24.0 // indirect
94-
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.34.0 // indirect
95-
go.opentelemetry.io/otel v1.10.0 // indirect
96-
go.opentelemetry.io/otel/exporters/jaeger v1.4.1 // indirect
97-
go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.9.0 // indirect
98-
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.9.0 // indirect
99-
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.9.0 // indirect
100-
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.9.0 // indirect
101-
go.opentelemetry.io/otel/sdk v1.9.0 // indirect
102-
go.opentelemetry.io/otel/trace v1.10.0 // indirect
103-
go.opentelemetry.io/proto/otlp v0.18.0 // indirect
104-
golang.org/x/arch v0.3.0 // indirect
105-
golang.org/x/crypto v0.9.0 // indirect
106-
golang.org/x/net v0.10.0 // indirect
107-
golang.org/x/oauth2 v0.2.0 // indirect
108-
golang.org/x/sync v0.1.0 // indirect
109-
golang.org/x/sys v0.8.0 // indirect
110-
golang.org/x/text v0.9.0 // indirect
111-
golang.org/x/time v0.0.0-20220722155302-e5dcc9cfc0b9 // indirect
112-
google.golang.org/genproto v0.0.0-20221027153422-115e99e71e1c // indirect
113-
google.golang.org/grpc v1.50.1 // indirect
114-
google.golang.org/protobuf v1.30.0 // indirect
32+
github.com/ugorji/go/codec v1.3.0 // indirect
33+
golang.org/x/arch v0.20.0 // indirect
34+
golang.org/x/crypto v0.41.0 // indirect
35+
golang.org/x/net v0.43.0 // indirect
36+
golang.org/x/sys v0.35.0 // indirect
37+
golang.org/x/text v0.28.0 // indirect
38+
google.golang.org/protobuf v1.36.8 // indirect
39+
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect
11540
gopkg.in/yaml.v3 v3.0.1 // indirect
11641
)
11742

0 commit comments

Comments
 (0)