mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-12 12:40:53 +00:00
* add elixir workflow * update * fix * add elixir workflow (#21215) * update tests to use built-in json module instead of jason * update base_url * temporarily disable type-casting for dates * retry failing tests * update spec to use localhost * add petsore local server to workflow --------- Co-authored-by: Enrique Fernández <enrique@bluelabs.eu>
40 lines
988 B
YAML
40 lines
988 B
YAML
name: Samples Elixir
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- samples/client/petstore/elixir/**
|
|
pull_request:
|
|
paths:
|
|
- samples/client/petstore/elixir/**
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
|
|
strategy:
|
|
matrix:
|
|
otp: ['25.3.2', '26.2.5', '27.3.3']
|
|
elixir: ['1.18.3']
|
|
sample:
|
|
- samples/client/petstore/elixir/
|
|
services:
|
|
petstore-api:
|
|
image: swaggerapi/petstore
|
|
ports:
|
|
- 80:8080
|
|
env:
|
|
SWAGGER_HOST: http://petstore.swagger.io
|
|
SWAGGER_BASE_PATH: /v2
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: erlef/setup-beam@v1
|
|
with:
|
|
otp-version: ${{matrix.otp}}
|
|
elixir-version: ${{matrix.elixir}}
|
|
- name: mix deps.get
|
|
run: mix deps.get
|
|
working-directory: ${{ matrix.sample }}
|
|
- name: mix test
|
|
run: mix test
|
|
working-directory: ${{ matrix.sample }}
|