Skip to content

update style tbale #335

update style tbale

update style tbale #335

Workflow file for this run

name: Elixir CI
on:
push:
pull_request:
branches:
- main
permissions:
contents: read
jobs:
build:
name: Build and test with elixir ${{ matrix.elixir }} otp ${{ matrix.otp }}
runs-on: ubuntu-20.04
strategy:
matrix:
include:
- elixir: '1.14.0'
otp: '25.0'
- elixir: '1.15.0'
otp: '26.0'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- name: Restore dependencies cache
uses: actions/cache@v3
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-
- name: Install dependencies
run: mix deps.get
- name: Compile with warnings
run: mix compile --warnings-as-errors
- name: Check format
run: mix format --check-formatted
- name: Credo
run: mix credo
- name: Run tests
run: mix test