Skip to content

investigate gorm v2 api #313

investigate gorm v2 api

investigate gorm v2 api #313

Triggered via pull request March 10, 2024 23:33
Status Failure
Total duration 1m 8s
Artifacts

pr.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

11 errors and 5 warnings
test
Process completed with exit code 1.
test: gorm/collection_operators.go#L188
cannot use offset (variable of type int32) as int value in argument to db.Offset
test: gorm/collection_operators.go#L192
cannot use limit (variable of type int32) as int value in argument to db.Limit
test: gorm/transaction.go#L111
t.parent.BeginTx undefined (type *"gorm.io/gorm".DB has no field or method BeginTx)
test: gorm/transaction.go#L128
t.parent.BeginTx undefined (type *"gorm.io/gorm".DB has no field or method BeginTx)
test: gorm/transaction.go#L143
t.current.CommonDB undefined (type *"gorm.io/gorm".DB has no field or method CommonDB)
test: gorm/transaction.go#L158
t.current.CommonDB undefined (type *"gorm.io/gorm".DB has no field or method CommonDB)
test: gorm/version.go#L93
multiple-value db.DB() (value of type (*sql.DB, error)) in single-value context
test: gorm/collection_operators_test.go#L69
cannot use "postgres" (constant of type string) as "gorm.io/gorm".Dialector value in argument to gorm.Open: string does not implement "gorm.io/gorm".Dialector (missing method BindVarTo)
test: gorm/collection_operators_test.go#L69
cannot use db (variable of type *sql.DB) as "gorm.io/gorm".Option value in argument to gorm.Open: *sql.DB does not implement "gorm.io/gorm".Option (missing method AfterInitialize)
test: gorm/transaction_test.go#L25
cannot use "postgres" (constant of type string) as "gorm.io/gorm".Dialector value in argument to gorm.Open: string does not implement "gorm.io/gorm".Dialector (missing method BindVarTo)
test
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-go@v2, actions/cache@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
test
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-go@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
lint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, golangci/golangci-lint-action@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
lint
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, golangci/golangci-lint-action@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
lint
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/