Skip to content

Support structs as inputs when casting objects #398

Support structs as inputs when casting objects

Support structs as inputs when casting objects #398

Workflow file for this run

name: Elixir CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
lint:
name: Lint (OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}})
runs-on: ubuntu-latest
strategy:
matrix:
otp: ['25']
elixir: ['1.13']
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
id: beam
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- name: PLT cache
uses: actions/cache@v2
with:
key: |
${{ runner.os }}-${{ steps.beam.outputs.elixir-version }}-${{ steps.beam.outputs.otp-version }}-plt
restore-keys: |
${{ runner.os }}-${{ steps.beam.outputs.elixir-version }}-${{ steps.beam.outputs.otp-version }}-plt
path: |
priv/plts
- run: mix deps.get
- run: mix compile --warnings-as-errors
- run: mix format --check-formatted
- run: mix credo --strict --all
- run: mix dialyzer
test_examples:
runs-on: ubuntu-latest
name: Test Sample Applications
env:
MIX_ENV: test
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
with:
otp-version: 24
elixir-version: 1.13
- uses: actions/cache@v2
with:
key: |
${{ runner.os }}-${{ steps.beam.outputs.elixir-version }}-${{ steps.beam.outputs.otp-version }}-plug-build
restore-keys: |
${{ runner.os }}-${{ steps.beam.outputs.elixir-version }}-${{ steps.beam.outputs.otp-version }}-plug-build
path: |
_build
- name: run Plug sample app tests
working-directory: ./examples/plug_app
run: mix do deps.get, test
test:
runs-on: ubuntu-20.04
name: Test (OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}})
strategy:
matrix:
otp: ['22', '23', '24', '25']
elixir: ['1.10', '1.11', '1.12', '1.13']
exclude:
- {otp: '24', elixir: '1.10'}
- {otp: '25', elixir: '1.10'}
- {otp: '25', elixir: '1.11'}
- {otp: '25', elixir: '1.12'}
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- uses: actions/cache@v2
with:
key: |
${{ runner.os }}-${{ steps.beam.outputs.elixir-version }}-${{ steps.beam.outputs.otp-version }}-build
restore-keys: |
${{ runner.os }}-${{ steps.beam.outputs.elixir-version }}-${{ steps.beam.outputs.otp-version }}-build
path: |
_build
- run: mix deps.get
- run: mix test