Skip to content

Commit

Permalink
Update module path and streamline Go testing workflow
Browse files Browse the repository at this point in the history
Changed the module path in `go.mod` for test modules and removed unnecessary indirect dependencies in `go.sum`. Also improved the GitHub Action workflow by explicitly navigating to the tests directory before running `go test ./...`.
  • Loading branch information
icpd committed Aug 8, 2024
1 parent fbfb895 commit 676ba50
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ jobs:
${{ runner.os }}-go-
- name: Get dependencies, run test
run: |
go test ./tests/...
cd tests
go test ./...
6 changes: 2 additions & 4 deletions tests/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module tests
module gorm.io/plugin/optimisticlock/tests

go 1.18

Expand All @@ -15,6 +15,4 @@ require (
golang.org/x/text v0.14.0 // indirect
)

replace (
gorm.io/plugin/optimisticlock => ../
)
replace gorm.io/plugin/optimisticlock => ../
2 changes: 0 additions & 2 deletions tests/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,3 @@ gorm.io/driver/sqlite v1.5.6 h1:fO/X46qn5NUEEOZtnjJRWRzZMe8nqJiQ9E+0hi+hKQE=
gorm.io/driver/sqlite v1.5.6/go.mod h1:U+J8craQU6Fzkcvu8oLeAQmi50TkwPEhHDEjQZXDah4=
gorm.io/gorm v1.25.11 h1:/Wfyg1B/je1hnDx3sMkX+gAlxrlZpn6X0BXRlwXlvHg=
gorm.io/gorm v1.25.11/go.mod h1:xh7N7RHfYlNc5EmcI/El95gXusucDrQnHXe0+CgWcLQ=
gorm.io/plugin/optimisticlock v1.1.3 h1:uFK8zz+Ln6ju3vGkTd1LY3xR2VBmMxjdU12KBb58PBA=
gorm.io/plugin/optimisticlock v1.1.3/go.mod h1:S+MH7qnHGQHxDBc9phjgN+DpNPn/qESd1q69fA3dtkg=

0 comments on commit 676ba50

Please sign in to comment.