check checks #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
branches: | |
- '**' | |
push: | |
branches: | |
- master | |
jobs: | |
check_format: | |
runs-on: ubuntu-latest | |
name: Check format | |
container: | |
image: elixir:1.9-slim | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Install Dependencies | |
run: | | |
mix local.rebar --force | |
mix local.hex --force | |
mix deps.get | |
- name: Check format | |
run: mix format --check-formatted | |
tests: | |
runs-on: ubuntu-latest | |
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}} | |
strategy: | |
matrix: | |
otp: [20.x, 21.x, 22.x] | |
elixir: [1.7.x, 1.8.x, 1.9.x, 1.10.x] | |
exclude: | |
- otp: 20.x | |
elixir: 1.10.x | |
needs: check_format | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/[email protected] | |
with: | |
otp-version: ${{matrix.otp}} | |
elixir-version: ${{matrix.elixir}} | |
- name: Install Dependencies | |
run: | | |
mix local.rebar --force | |
mix local.hex --force | |
mix deps.get | |
- name: Run Tests | |
run: mix test | |
interop-tests: | |
runs-on: ubuntu-latest | |
name: Interop tests | |
container: | |
image: elixir:1.9-slim | |
needs: check_format | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Install Dependencies | |
run: | | |
mix local.rebar --force | |
mix local.hex --force | |
mix deps.get | |
working-directory: ./interop | |
- name: Run interop tests | |
run: mix run script/run.exs | |
working-directory: ./interop | |
check_release: | |
runs-on: ubuntu-latest | |
name: Check release | |
needs: check_format | |
container: | |
image: elixir:1.9-slim | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Install Dependencies | |
run: | | |
mix local.rebar --force | |
mix local.hex --force | |
mix deps.get | |
- name: Build hex | |
run: mix hex.build | |
- name: Generate docs | |
run: mix docs |