Skip to content

Commit 250ec91

Browse files
authored
feat(cicd): Adding additional tests (#26)
* Starting testing * wherer tests * Updating the test suite * Updating the test suite * adding tests
1 parent 3aef488 commit 250ec91

File tree

462 files changed

+102259
-17450
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

462 files changed

+102259
-17450
lines changed

Makefile

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
# Define variables
2-
hash = $(shell git rev-parse --short HEAD)
3-
DATE = $(shell date -u +'%Y-%m-%dT%H:%M:%SZ')
4-
5-
pr-approval:
6-
@echo "Running PR CI"
7-
go build ./...
8-
go vet ./...
9-
go test ./...
10-
codegen:
11-
@echo "Generating code"
12-
go install github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen@latest
13-
14-
go generate ./...
1+
# Define variables
2+
hash = $(shell git rev-parse --short HEAD)
3+
DATE = $(shell date -u +'%Y-%m-%dT%H:%M:%SZ')
4+
5+
pr-approval:
6+
@echo "Running PR CI"
7+
go build ./...
8+
go vet ./...
9+
go test ./...
10+
codegen:
11+
@echo "Generating code"
12+
go generate ./...

common/gen.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
package common
22

3-
//go:generate oapi-codegen -generate types,skip-prune -package common -templates ../templates -o types.go ./common.yaml
3+
//go:generate go run github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen -generate types,skip-prune -package common -templates ../templates -o types.go ./common.yaml

common/types.go

Lines changed: 50 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go.mod

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ go 1.23
55
toolchain go1.23.1
66

77
require (
8+
github.com/jacobbrewer1/uhttp v0.0.10
89
github.com/jmoiron/sqlx v1.4.0
10+
github.com/oapi-codegen/oapi-codegen/v2 v2.4.1
911
github.com/oapi-codegen/runtime v1.1.1
1012
github.com/stretchr/testify v1.10.0
1113
github.com/vektra/mockery/v2 v2.52.1
@@ -14,34 +16,48 @@ require (
1416
require (
1517
github.com/chigopher/pathlib v0.19.1 // indirect
1618
github.com/davecgh/go-spew v1.1.1 // indirect
19+
github.com/dprotaso/go-yit v0.0.0-20220510233725-9ba8df137936 // indirect
1720
github.com/fsnotify/fsnotify v1.6.0 // indirect
18-
github.com/google/uuid v1.5.0 // indirect
21+
github.com/getkin/kin-openapi v0.127.0 // indirect
22+
github.com/go-openapi/jsonpointer v0.21.0 // indirect
23+
github.com/go-openapi/swag v0.23.0 // indirect
24+
github.com/google/uuid v1.6.0 // indirect
1925
github.com/hashicorp/hcl v1.0.0 // indirect
2026
github.com/huandu/xstrings v1.4.0 // indirect
2127
github.com/iancoleman/strcase v0.2.0 // indirect
2228
github.com/inconshreveable/mousetrap v1.1.0 // indirect
29+
github.com/invopop/yaml v0.3.1 // indirect
2330
github.com/jinzhu/copier v0.3.5 // indirect
31+
github.com/josharian/intern v1.0.0 // indirect
2432
github.com/magiconair/properties v1.8.7 // indirect
33+
github.com/mailru/easyjson v0.7.7 // indirect
2534
github.com/mattn/go-colorable v0.1.13 // indirect
2635
github.com/mattn/go-isatty v0.0.20 // indirect
2736
github.com/mitchellh/go-homedir v1.1.0 // indirect
2837
github.com/mitchellh/mapstructure v1.5.0 // indirect
38+
github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 // indirect
2939
github.com/pelletier/go-toml/v2 v2.0.9 // indirect
40+
github.com/perimeterx/marshmallow v1.1.5 // indirect
3041
github.com/pmezard/go-difflib v1.0.0 // indirect
3142
github.com/rs/zerolog v1.33.0 // indirect
43+
github.com/speakeasy-api/openapi-overlay v0.9.0 // indirect
3244
github.com/spf13/afero v1.9.3 // indirect
3345
github.com/spf13/cast v1.5.0 // indirect
34-
github.com/spf13/cobra v1.6.1 // indirect
46+
github.com/spf13/cobra v1.7.0 // indirect
3547
github.com/spf13/jwalterweatherman v1.1.0 // indirect
3648
github.com/spf13/pflag v1.0.5 // indirect
3749
github.com/spf13/viper v1.15.0 // indirect
3850
github.com/stretchr/objx v0.5.2 // indirect
3951
github.com/subosito/gotenv v1.4.2 // indirect
40-
golang.org/x/mod v0.14.0 // indirect
41-
golang.org/x/sys v0.15.0 // indirect
52+
github.com/vmware-labs/yaml-jsonpath v0.3.2 // indirect
53+
golang.org/x/mod v0.17.0 // indirect
54+
golang.org/x/sync v0.8.0 // indirect
55+
golang.org/x/sys v0.20.0 // indirect
4256
golang.org/x/term v0.5.0 // indirect
43-
golang.org/x/text v0.14.0 // indirect
44-
golang.org/x/tools v0.17.0 // indirect
57+
golang.org/x/text v0.18.0 // indirect
58+
golang.org/x/time v0.9.0 // indirect
59+
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d // indirect
4560
gopkg.in/ini.v1 v1.67.0 // indirect
61+
gopkg.in/yaml.v2 v2.4.0 // indirect
4662
gopkg.in/yaml.v3 v3.0.1 // indirect
4763
)

0 commit comments

Comments
 (0)