mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-10-13 16:03:43 +00:00
* migrate go tests from circleci to github workflow * update samples * update samples * update workflow * update samples * update samples * update test * update tests * update tests * fix * fix * update host table * update tests * update spec * new spec
46 lines
1.8 KiB
YAML
46 lines
1.8 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/**
|
|
- samples/client/others/go/allof_multiple_ref_and_discriminator/**
|
|
- samples/client/others/go/oneof-anyof-required/**
|
|
- samples/client/others/go/oneof-discriminator-lookup/**
|
|
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/**
|
|
- samples/client/others/go/allof_multiple_ref_and_discriminator/**
|
|
- samples/client/others/go/oneof-anyof-required/**
|
|
- samples/client/others/go/oneof-discriminator-lookup/**
|
|
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/
|
|
- samples/client/others/go/allof_multiple_ref_and_discriminator/
|
|
- samples/client/others/go/oneof-anyof-required/
|
|
- samples/client/others/go/oneof-discriminator-lookup/
|
|
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
|
|
|