update locked deps #98
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: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
test: | |
name: Elixir ${{matrix.elixir}} / OTP ${{matrix.otp}} | |
runs-on: ${{matrix.os}} | |
strategy: | |
matrix: | |
include: | |
# TODO: fix this | |
#- otp: "23" | |
# elixir: "1.10" | |
# os: ubuntu-18.04 | |
- otp: "25" | |
elixir: "main" | |
os: ubuntu-latest | |
env: | |
MIX_ENV: test | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up Elixir | |
uses: erlef/setup-elixir@v1 | |
with: | |
elixir-version: ${{ matrix.elixir }} | |
otp-version: ${{ matrix.otp }} | |
- name: Restore deps cache | |
uses: actions/cache@v2 | |
with: | |
path: | | |
deps | |
_build | |
key: deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }}-${{ github.sha }} | |
restore-keys: | | |
deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }} | |
deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }} | |
- name: Install package dependencies | |
run: mix deps.get | |
- name: Check for valid formatting | |
run: mix format --check-formatted | |
- name: Run unit tests | |
run: mix test --color |