Skip to content

Update README.md

Update README.md #4

Workflow file for this run

name: build
on:
push:
branches:
- "**"
pull_request:
branches:
- master
types: [opened, synchronize, closed]
permissions:
contents: read
jobs:
tests:
runs-on: ubuntu-20.04
name: Tests on ${{matrix.environment.elixir-version}}
strategy:
matrix:
environment:
- elixir-version: 1.15.7
otp-version: 26.1.2
- elixir-version: 1.14
otp-version: 24.3.4
steps:
- uses: actions/checkout@v3
- name: Set up Elixir
uses: erlef/setup-beam@988e02bfe678367a02564f65ca2e37726dc0268f
with: ${{matrix.environment}}
- name: Restore dependencies cache
uses: actions/cache@v3
with:
path: deps/
key: deps-${{ runner.os }}-${{ matrix.environment.otp-version }}-${{ matrix.environment.elixir-version }}-${{ hashFiles('**/mix.lock') }}
- name: Restore build cache
uses: actions/cache@v3
with:
path: _build/test/
key: build-${{ runner.os }}-${{ matrix.environment.otp-version }}-${{ matrix.environment.elixir-version }}-${{ hashFiles('**/mix.lock') }}
- name: Install dependencies
run: |
mix local.rebar --force
mix local.hex --force
mix deps.get
mix compile
mix format --check-formatted
- name: Run tests
run: mix test
env:
MIX_ENV: test