Skip to content

Updated version number #381

Updated version number

Updated version number #381

Workflow file for this run

name: Elixir CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Build and test
runs-on: ubuntu-latest
strategy:
matrix:
elixir: ['1.14.5']
otp: ['25']
steps:
- uses: actions/checkout@v3
- 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
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-
- name: Install dependencies
run: mix deps.get
- name: Run local.rebar
run: mix local.rebar --force
- name: Run local.hex
run: mix local.hex --force
- name: Run tests
run: mix test
- name: Retrieve PLT Cache
uses: actions/cache@v2
id: plt-cache
with:
path: priv/plts
key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-plts-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
- name: Create PLTs
if: steps.plt-cache.outputs.cache-hit != 'true'
run:
mkdir -p priv/plts && mix dialyzer --plt
- name: Run dialyzer
run: mix dialyzer --format github