[phpnextgen] Add API interfaces generation #2
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 C# .Net 6 | |
on: | |
push: | |
paths: | |
- samples/client/echo_api/csharp-restsharp/** | |
pull_request: | |
paths: | |
- samples/client/echo_api/csharp-restsharp/** | |
jobs: | |
build: | |
name: Build .Net clients | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
sample: | |
# clients | |
- samples/client/echo_api/csharp-restsharp/ | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-dotnet@v4.0.0 | |
with: | |
dotnet-version: '6.0.x' | |
- 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 &) | |
- name: Build | |
working-directory: ${{ matrix.sample }} | |
run: | | |
dotnet build Org.OpenAPITools.sln | |
dotnet test Org.OpenAPITools.sln |