Skip to content

capture error logs for unit test #25

capture error logs for unit test

capture error logs for unit test #25

Workflow file for this run

name: CI (Linux)
on:
pull_request:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-20.04
env:
MIX_ENV: test
strategy:
fail-fast: false
matrix:
include:
- pair:
elixir: 1.11.4
otp: 22.3
- pair:
elixir: 1.15.7
otp: 26.1
lint: lint
steps:
- name: Install inotify-tools
run: sudo apt-get update && sudo apt-get install -y inotify-tools
- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.pair.otp}}
elixir-version: ${{matrix.pair.elixir}}
- uses: actions/checkout@v4
- run: mix deps.get
- run: mix format --check-formatted
if: ${{ matrix.lint }}
- run: mix deps.unlock --check-unused
if: ${{ matrix.lint }}
- run: mix deps.compile
- run: mix compile --warnings-as-errors
if: ${{ matrix.lint }}
- run: mix test --only os_linux