mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-10-14 00:13:50 +00:00
* test withXml option * fix path * update go code (withXml: true) * test one more go client
38 lines
1.2 KiB
YAML
38 lines
1.2 KiB
YAML
name: Samples Go Clients
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- 'samples/openapi3/client/petstore/go/go-petstore-aws-signature/**'
|
|
- 'samples/openapi3/client/petstore/go-petstore-withXml/**'
|
|
- samples/openapi3/client/petstore/go-petstore-generateMarshalJSON-false/**
|
|
pull_request:
|
|
paths:
|
|
- 'samples/openapi3/client/petstore/go/go-petstore-aws-signature/**'
|
|
- 'samples/openapi3/client/petstore/go-petstore-withXml/**'
|
|
- samples/openapi3/client/petstore/go-petstore-generateMarshalJSON-false/**
|
|
|
|
jobs:
|
|
build:
|
|
name: Build Go
|
|
runs-on: windows-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
sample:
|
|
- 'samples/openapi3/client/petstore/go/go-petstore-aws-signature/'
|
|
- 'samples/openapi3/client/petstore/go-petstore-withXml/'
|
|
- samples/openapi3/client/petstore/go-petstore-generateMarshalJSON-false/
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- uses: actions/setup-go@v6
|
|
- run: go version
|
|
- name: Install Dependencies
|
|
working-directory: ${{ matrix.sample }}
|
|
run: |
|
|
go mod tidy
|
|
- name: Run test
|
|
working-directory: ${{ matrix.sample }}
|
|
run: go test -mod=mod -v
|
|
|