Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: CI

on:
pull_request:
push:
branches:
- main

permissions:
contents: read

jobs:
mix-test:
runs-on: ubuntu-20.04

name: mix test (OTP ${{matrix.otp}} | Elixir ${{matrix.elixir}})

env:
MIX_ENV: test

strategy:
fail-fast: false
matrix:
include:
- elixir: 1.12.3
otp: 22.3
- elixir: 1.14.0
otp: 24.3.4
lint: lint
steps:
- uses: actions/checkout@v2

- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}

- uses: actions/cache@v3
with:
path: |
deps
_build
key: deps-${{ runner.os }}-${{matrix.otp}}-${{matrix.matrix}}-${{ hashFiles('**/mix.lock') }}
restore-keys: deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}

- 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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# LiveInspect

[![CI](https://github.com/schrockwell/live_inspect/actions/workflows/ci.yml/badge.svg)](https://github.com/schrockwell/live_inspect/actions/workflows/ci.yml)
[![Module Version](https://img.shields.io/hexpm/v/live_inspect.svg)](https://hex.pm/packages/live_inspect)
[![Hex Docs](https://img.shields.io/badge/hex-docs-purple.svg)](https://hexdocs.pm/live_inspect/)
[![License](https://img.shields.io/hexpm/l/live_inspect.svg)](https://github.com/schrockwell/live_inspect/blob/main/LICENSE)
Expand Down
4 changes: 0 additions & 4 deletions test/live_dump_test.exs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
defmodule LiveDumpTest do
use ExUnit.Case
doctest LiveInspect

test "greets the world" do
assert LiveInspect.hello() == :world
end
end