Skip to content

Commit

Permalink
Fix config.json not found
Browse files Browse the repository at this point in the history
  • Loading branch information
darkweak committed Apr 12, 2022
1 parent af85b7c commit c730b22
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ jobs:
time: 30s
-
name: Set Goyave logs configuration result as environment variable
run: cd plugins/goyave/examples && echo "GOYAVE_MIDDLEWARE_RESULT=$(docker-compose logs goyave)" >> $GITHUB_ENV
run: cd plugins/goyave/examples && echo "GOYAVE_MIDDLEWARE_RESULT=$(docker-compose logs goyave | grep Souin)" >> $GITHUB_ENV
-
name: Check if the configuration is loaded to define if Souin is loaded too
uses: nick-invision/assert-action@v1
Expand Down
2 changes: 1 addition & 1 deletion docs/e2e/Souin E2E.postman_collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -2067,7 +2067,7 @@
},
{
"key": "goyave_url",
"value": "http://domain.com:8080"
"value": "http://domain.com"
}
]
}
2 changes: 2 additions & 0 deletions plugins/goyave/examples/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ import (

cache "github.com/darkweak/souin/plugins/goyave"
"goyave.dev/goyave/v4"
"goyave.dev/goyave/v4/config"
)

func main() {
config.LoadFrom("examples/config.json")
goyave.Start(func(r *goyave.Router) {
r.Get("/{p}", func(response *goyave.Response, r *goyave.Request) {
response.String(http.StatusOK, "Hello, World 👋!")
Expand Down

0 comments on commit c730b22

Please sign in to comment.