[go-server] Add information, where the server runs to generated READM… #235
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Samples Go | |
on: | |
push: | |
paths: | |
- 'samples/server/petstore/go-echo-server/**' | |
- 'samples/server/petstore/go-api-server/**' | |
- 'samples/server/petstore/go-chi-server/**' | |
- 'samples/server/others/go-server/no-body-path-params/**' | |
pull_request: | |
paths: | |
- 'samples/server/petstore/go-echo-server/**' | |
- 'samples/server/petstore/go-api-server/**' | |
- 'samples/server/petstore/go-chi-server/**' | |
- 'samples/server/others/go-server/no-body-path-params/**' | |
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/ | |
- samples/server/petstore/go-chi-server/ | |
- samples/server/others/go-server/no-body-path-params/ | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: "stable" | |
- run: go version | |
- name: Run test | |
working-directory: ${{ matrix.sample }} | |
run: go test -mod=mod -v |