Skip to content

Update CHANGELOG, mix and README #1

Update CHANGELOG, mix and README

Update CHANGELOG, mix and README #1

Workflow file for this run

name: Elixir CI
on: push
jobs:
build:
name: Build, test and dialyzer
runs-on: ubuntu-latest
strategy:
matrix:
elixir: [">1.12"]
otp: [">22"]
steps:
- uses: actions/checkout@v4
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: ${{ matrix.elixir }} # Define the elixir version [required]
otp-version: ${{ matrix.otp }} # Define the OTP version [required]
- name: Restore dependencies cache
uses: actions/cache@v2
id: cache-mix
with:
path: |
deps
_build
priv/plts
key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-${{ hashFiles('**/mix.lock') }}
- name: Install and compile deps and plt
if: steps.cache-mix.outputs.cache-hit != 'true'
run: |
mkdir -p priv/plts
mix local.rebar --force
mix local.hex --force
mix deps.get
mix deps.compile
mix dialyzer --plt
- name: Check compile time warnings
env:
MIX_ENV: test
run: mix compile --warnings-as-errors
- name: Run test
run: mix test
- name: Make sure that compiled version works without build json available
run: rm _build/test/lib/ex_cldr/priv/cldr/territory_containment.json && mix test
- name: Run dialyzer
run: mix dialyzer --no-check