From d24327285d8dc479f19dbbafdaf28d975c1f4591 Mon Sep 17 00:00:00 2001 From: Bowens Date: Thu, 9 Nov 2023 20:53:11 +0800 Subject: [PATCH] Upgrade v1.1.11 --- .github/workflows/goreleaser.yml | 26 -------------------------- context_request_test.go | 8 ++++---- context_response_test.go | 2 +- cors_test.go | 2 +- go.mod | 2 +- go.sum | 5 ++++- group_test.go | 2 +- route_test.go | 2 +- view_test.go | 4 ++-- 9 files changed, 15 insertions(+), 38 deletions(-) delete mode 100644 .github/workflows/goreleaser.yml diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml deleted file mode 100644 index 73811c1..0000000 --- a/.github/workflows/goreleaser.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: Release -on: - push: - tags: - - 'v*' -permissions: - contents: write -jobs: - goreleaser: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Set up Go - uses: actions/setup-go@v4 - with: - go-version: 'stable' - - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v5 - with: - version: latest - args: release --clean - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/context_request_test.go b/context_request_test.go index fd817af..1977754 100644 --- a/context_request_test.go +++ b/context_request_test.go @@ -11,13 +11,13 @@ import ( "strings" "testing" + configmocks "github.com/goravel/framework/contracts/config/mocks" + filesystemmocks "github.com/goravel/framework/contracts/filesystem/mocks" contractshttp "github.com/goravel/framework/contracts/http" + logmocks "github.com/goravel/framework/contracts/log/mocks" "github.com/goravel/framework/contracts/validation" + validationmocks "github.com/goravel/framework/contracts/validation/mocks" frameworkfilesystem "github.com/goravel/framework/filesystem" - configmocks "github.com/goravel/framework/mocks/config" - filesystemmocks "github.com/goravel/framework/mocks/filesystem" - logmocks "github.com/goravel/framework/mocks/log" - validationmocks "github.com/goravel/framework/mocks/validation" "github.com/goravel/framework/support/json" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/mock" diff --git a/context_response_test.go b/context_response_test.go index 85a3553..2739253 100644 --- a/context_response_test.go +++ b/context_response_test.go @@ -7,8 +7,8 @@ import ( "strings" "testing" + configmocks "github.com/goravel/framework/contracts/config/mocks" contractshttp "github.com/goravel/framework/contracts/http" - configmocks "github.com/goravel/framework/mocks/config" "github.com/goravel/framework/support/json" "github.com/stretchr/testify/assert" ) diff --git a/cors_test.go b/cors_test.go index fdaebce..a069fdd 100644 --- a/cors_test.go +++ b/cors_test.go @@ -4,8 +4,8 @@ import ( "net/http" "testing" + configmocks "github.com/goravel/framework/contracts/config/mocks" contractshttp "github.com/goravel/framework/contracts/http" - configmocks "github.com/goravel/framework/mocks/config" "github.com/stretchr/testify/assert" ) diff --git a/go.mod b/go.mod index 5c8bca3..aa9f11c 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ require ( github.com/gofiber/template/html/v2 v2.0.5 github.com/gookit/color v1.5.4 github.com/gookit/validate v1.5.1 - github.com/goravel/framework v1.13.1-0.20231006012150-4a6e705dbd56 + github.com/goravel/framework v1.13.4 github.com/savioxavier/termlink v1.3.0 github.com/spf13/cast v1.5.1 github.com/stretchr/testify v1.8.4 diff --git a/go.sum b/go.sum index 83cc487..89666ae 100644 --- a/go.sum +++ b/go.sum @@ -334,8 +334,11 @@ github.com/goravel/file-rotatelogs v0.0.0-20211215053220-2ab31dd9575c h1:obhFK91 github.com/goravel/file-rotatelogs v0.0.0-20211215053220-2ab31dd9575c/go.mod h1:YSWsLXlG16u5CWFaXNZHhEQD10+NwF3xfgDV816OwLE= github.com/goravel/file-rotatelogs/v2 v2.4.1 h1:ogkeIFcTHSBRUBpZYiyJbpul8hkVXxHPuDbOaP78O1M= github.com/goravel/file-rotatelogs/v2 v2.4.1/go.mod h1:euk9qr52WrzM8ICs1hecFcR4CZ/ZZOPdacHfvHgbOf0= -github.com/goravel/framework v1.13.1-0.20231006012150-4a6e705dbd56 h1:9pHiJiqJVg7wuHxEVKEnIbxErTfCDFhOKifN0iU2q0A= github.com/goravel/framework v1.13.1-0.20231006012150-4a6e705dbd56/go.mod h1:jUJTB38V9LEDneVTmNxPl8ALQXjvtirfjck4XQI12J8= +github.com/goravel/framework v1.13.3 h1:pozapgxJWEE7hZVBF/UYwEYQ23tQdZ+uqJjycR9MnTk= +github.com/goravel/framework v1.13.3/go.mod h1:BOUTIwzhOMyKNXaxSYbVB74NkmbS2xv1W1fPRv9eDws= +github.com/goravel/framework v1.13.4 h1:Z9ZMZZSCFONiV8IHx/tC1a5MKfB9sqsNbuH7SSmJVMQ= +github.com/goravel/framework v1.13.4/go.mod h1:BOUTIwzhOMyKNXaxSYbVB74NkmbS2xv1W1fPRv9eDws= github.com/gorilla/securecookie v1.1.1/go.mod h1:ra0sb63/xPlUeL+yeDciTfxMRAA+MP+HVt/4epWDjd4= github.com/gorilla/sessions v1.2.1/go.mod h1:dk2InVEVJ0sfLlnXv9EAgkf6ecYs/i80K/zI+bUmuGM= github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 h1:UH//fgunKIs4JdUbpDl1VZCDaL56wXCB/5+wF6uHfaI= diff --git a/group_test.go b/group_test.go index 4fba153..bbb6134 100644 --- a/group_test.go +++ b/group_test.go @@ -7,9 +7,9 @@ import ( "path/filepath" "testing" + configmocks "github.com/goravel/framework/contracts/config/mocks" contractshttp "github.com/goravel/framework/contracts/http" "github.com/goravel/framework/contracts/route" - configmocks "github.com/goravel/framework/mocks/config" "github.com/goravel/framework/support/json" "github.com/stretchr/testify/assert" ) diff --git a/route_test.go b/route_test.go index 6eee787..1cb2208 100644 --- a/route_test.go +++ b/route_test.go @@ -10,9 +10,9 @@ import ( "github.com/gofiber/fiber/v2" "github.com/gofiber/template/html/v2" + configmocks "github.com/goravel/framework/contracts/config/mocks" contractshttp "github.com/goravel/framework/contracts/http" "github.com/goravel/framework/contracts/validation" - configmocks "github.com/goravel/framework/mocks/config" "github.com/stretchr/testify/assert" ) diff --git a/view_test.go b/view_test.go index bbc5203..c845044 100644 --- a/view_test.go +++ b/view_test.go @@ -5,9 +5,9 @@ import ( "net/http" "testing" + configmocks "github.com/goravel/framework/contracts/config/mocks" contractshttp "github.com/goravel/framework/contracts/http" - configmocks "github.com/goravel/framework/mocks/config" - httpmocks "github.com/goravel/framework/mocks/http" + httpmocks "github.com/goravel/framework/contracts/http/mocks" "github.com/goravel/framework/support/file" "github.com/stretchr/testify/assert" )