forked from loafle/openapi-generator-original
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 4 to 5. - [Release notes](https://github.com/actions/setup-go/releases) - [Commits](https://github.com/actions/setup-go/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/setup-go dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
33 lines
868 B
YAML
33 lines
868 B
YAML
name: Go Client (Echo API)
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- samples/client/echo_api/go/**
|
|
- .github/workflows/samples-go-client-echo-api.yaml
|
|
jobs:
|
|
build:
|
|
name: Test Go client
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
sample:
|
|
# clients
|
|
- samples/client/echo_api/go
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version: "stable"
|
|
- name: Setup node.js
|
|
uses: actions/setup-node@v4
|
|
- name: Run echo server
|
|
run: |
|
|
git clone https://github.com/wing328/http-echo-server -b openapi-generator-test-server
|
|
(cd http-echo-server && npm install && npm start &)
|
|
- run: go version
|
|
- name: Run test
|
|
working-directory: ${{ matrix.sample }}
|
|
run: go test -mod=mod -v
|