mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2026-01-17 21:47:08 +00:00
* add workflow for powershell client * update * fix container * import, test * combine * use localhost * update tests * remove powershell tests from appveyor.yml
41 lines
905 B
YAML
41 lines
905 B
YAML
name: Samples PowerShell
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- samples/client/petstore/powershell/**
|
|
pull_request:
|
|
paths:
|
|
- samples/client/petstore/powershell/**
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
name: Test Powershell Clients
|
|
strategy:
|
|
matrix:
|
|
sample:
|
|
- samples/client/petstore/powershell/
|
|
services:
|
|
petstore-api:
|
|
image: swaggerapi/petstore
|
|
ports:
|
|
- 80:8080
|
|
env:
|
|
SWAGGER_HOST: http://petstore.swagger.io
|
|
SWAGGER_BASE_PATH: /v2
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- name: Build the client
|
|
working-directory: ${{ matrix.sample }}
|
|
shell: pwsh
|
|
run: |
|
|
./Build.ps1
|
|
- name: Test
|
|
working-directory: ${{ matrix.sample }}
|
|
shell: pwsh
|
|
run: |
|
|
Import-Module -Name './src/PSPetstore'
|
|
Invoke-Pester -PassThru
|
|
|
|
|