Skip to content

chore: Update CI configuration and dependencies to latest versions #79

chore: Update CI configuration and dependencies to latest versions

chore: Update CI configuration and dependencies to latest versions #79

name: test_and_lint
on: [push, pull_request]
jobs:
test_and_lint:
name: Test-and-Lint
runs-on: ubuntu-22.04
strategy:
matrix:
include:
- otp: '21'
elixir: '1.9'
- otp: '24.2'
elixir: '1.14'
env:
MIX_ENV: test
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp }}
elixir-version: ${{ matrix.elixir }}
- uses: actions/cache@v4
with:
path: |
deps
_build
key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
restore-keys: |
${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-
- run: mix deps.get
- run: mix coveralls.github