Skip to content

fix: codegen breaking changes in api spec #362

fix: codegen breaking changes in api spec

fix: codegen breaking changes in api spec #362

Workflow file for this run

name: Continuous Integration
on:
pull_request:
types:
- opened
- reopened
- synchronize
push:
branches:
- master
merge_group:
jobs:
test:
env:
MIX_ENV: test
STRIPE_MOCK_VERSION: 0.144.0
STRIPE_SECRET_KEY: non_empty_string
SKIP_STRIPE_MOCK_RUN: true
runs-on: ubuntu-20.04
name: Test (OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}})
strategy:
matrix:
elixir: ['1.14', '1.15', '1.16']
otp: [24, 25, 26]
services:
stripe-mock:
image: stripe/stripe-mock:v0.144.0
ports:
- 12111:12111
- 12112:12112
steps:
- name: Clone code
uses: actions/checkout@v2
- name: Setup Elixir and Erlang
uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp }}
elixir-version: ${{ matrix.elixir }}
- name: Mix Dependencies
run: mix deps.get
- name: Test
run: mix test
lint:
runs-on: ubuntu-20.04
name: Linting
strategy:
matrix:
elixir: ['1.16']
otp: ["26"]
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- uses: actions/cache@v1
env:
cache-name: mix
with:
path: ~/.mix
key: cache-${{ runner.os }}-${{ env.cache-name }}-${{ matrix.otp }}-${{ matrix.elixir }}
restore-keys: |
cache-${{ runner.os }}-${{ env.cache-name }}-
- uses: actions/cache@v1
env:
cache-name: build
with:
path: _build
key: cache-${{ runner.os }}-${{ env.cache-name }}-${{ matrix.otp }}-${{ matrix.elixir }}
restore-keys: |
cache-${{ runner.os }}-${{ env.cache-name }}-
- run: mix deps.get
- run: mix compile --warnings-as-errors
- run: mix dialyzer --halt-exit-status
- run: mix deps.unlock --check-unused