Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[go-echo-server] update echo to newer version #13732

Merged
merged 17 commits into from
Oct 19, 2022
36 changes: 36 additions & 0 deletions .github/workflows/samples-go.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Samples Go

on:
push:
paths:
- 'samples/server/petstore/go-echo-server/**'
- 'samples/server/petstore/go-api-server/**'
pull_request:
paths:
- 'samples/server/petstore/go-echo-server/**'
- 'samples/server/petstore/go-api-server/**'

jobs:
build:
name: Build Go
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
sample:
- samples/server/petstore/go-echo-server/
- samples/server/petstore/go-api-server/
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '>=1.17.0'
- run: go version
- name: Install
working-directory: ${{ matrix.sample }}
run: |
go get github.com/labstack/echo/v4/[email protected]
go get github.com/labstack/echo/[email protected]
- name: Build
working-directory: ${{ matrix.sample }}
run: go test -v
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ module github.com/{{{gitUserId}}}/{{{gitRepoId}}}

go 1.16

require github.com/labstack/echo/v4 v4.2.0
require github.com/labstack/echo/v4 v4.9.0
2 changes: 0 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1333,10 +1333,8 @@
<!-- test Go projects -->
<module>samples/client/petstore/go</module>
<module>samples/openapi3/client/petstore/go</module>
<module>samples/server/petstore/go-api-server</module>
<!-- comment out due to Go version
<module>samples/server/petstore/go-gin-api-server</module>-->
<module>samples/server/petstore/go-echo-server</module>
</modules>
</profile>
<profile>
Expand Down
2 changes: 1 addition & 1 deletion samples/server/petstore/go-echo-server/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ module github.com/GIT_USER_ID/GIT_REPO_ID

go 1.16

require github.com/labstack/echo/v4 v4.2.0
require github.com/labstack/echo/v4 v4.9.0