Skip to content

Support custom primitive type formats #62

Support custom primitive type formats

Support custom primitive type formats #62

Workflow file for this run

name: CI
on: [pull_request]
jobs:
test:
name: "Test"
runs-on: ubuntu-20.04
# See https://hexdocs.pm/elixir/compatibility-and-deprecations.html#compatibility-between-elixir-and-erlang-otp
strategy:
matrix:
include:
- pair:
otp: "23.3.4.20"
elixir: "1.14.5"
- pair:
otp: "27.0"
elixir: "1.17.1"
lint: lint
env:
MIX_ENV: test
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup BEAM
uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.pair.otp}}
elixir-version: ${{matrix.pair.elixir}}
- name: Fetch Hex Cache
uses: actions/cache@v4
id: hex-cache
with:
path: |
deps
_build
key: ${{ runner.os }}-mix-${{matrix.pair.otp}}-${{ hashFiles('mix.lock') }}
restore-keys: |
${{ runner.os }}-mix-${{matrix.pair.otp}}-
- name: Check Code Format
run: mix format --check-formatted
if: ${{matrix.lint}}
- name: Run Tests
run: |
mix deps.get
mix test
- name: Publish Results
uses: dorny/test-reporter@v1
if: ${{ failure() }}
with:
fail-on-error: "false"
list-suites: failed
list-tests: failed
name: Results
path: _build/test/lib/oapi_generator/*.xml
reporter: java-junit