Skip to content

Commit

Permalink
🧪 feat(ci,readme): Add test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
worthant committed Oct 15, 2024
1 parent f29f8ca commit b33e05c
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@ jobs:
run: |
mix credo --strict
- name: Test with Coverage
run: |
mix coveralls --umbrella
- name: Post Coverage to Coveralls
run: |
mix coveralls.github
- name: Test
run: |
mix test
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# Лабораторная работа №1 (Проект Эйлера)

<p align="center">
<a href="https://github.com/Imtjl/fp-euler-project-lab1">
<picture>
<img src="resources/logo.png" height="200">
</picture>
<h1 align="center">
Лабораторная работа №1 (Проект Эйлера)
</h1>
</a>
</p>

<p align="center">
![Elixir CI](https://github.com/Imtjl/fp-euler-project-lab1/actions/workflows/ci.yml/badge.svg)

[![Coverage Status](https://github.com/Imtjl/fp-euler-project-lab1/badge.svg?branch=master)](https://github.com/Imtjl/fp-euler-project-lab1?branch=master)

![Elixir Version](https://img.shields.io/badge/Elixir-1.15.7-purple?style=for-the-badge&labelColor=000000)

![Erlang/OTP Version](https://img.shields.io/badge/Erlang%2FOTP-26.0-red?style=for-the-badge&labelColor=000000)
</p>

---

- Студент: `Дворкин Борис Александрович`
Expand Down
13 changes: 11 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,15 @@ defmodule Euler.MixProject do
elixir: "~> 1.15",
start_permanent: Mix.env() == :prod,
deps: deps(),
elixirc_paths: elixirc_paths(Mix.env())
elixirc_paths: elixirc_paths(Mix.env()),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.html": :test,
"coveralls.json": :test,
"coveralls.detail": :test,
"coveralls.post": :test
]
]
end

Expand All @@ -23,7 +31,8 @@ defmodule Euler.MixProject do
defp deps do
[
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:propcheck, "~> 1.4.1", only: [:test]}
{:propcheck, "~> 1.4.1", only: [:test]},
{:excoveralls, "~> 0.14", only: :test}
]
end

Expand Down
1 change: 1 addition & 0 deletions mix.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
%{
"bunt": {:hex, :bunt, "1.0.0", "081c2c665f086849e6d57900292b3a161727ab40431219529f13c4ddcf3e7a44", [:mix], [], "hexpm", "dc5f86aa08a5f6fa6b8096f0735c4e76d54ae5c9fa2c143e5a1fc7c1cd9bb6b5"},
"credo": {:hex, :credo, "1.7.8", "9722ba1681e973025908d542ec3d95db5f9c549251ba5b028e251ad8c24ab8c5", [:mix], [{:bunt, "~> 0.2.1 or ~> 1.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:file_system, "~> 0.2 or ~> 1.0", [hex: :file_system, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "cb9e87cc64f152f3ed1c6e325e7b894dea8f5ef2e41123bd864e3cd5ceb44968"},
"excoveralls": {:hex, :excoveralls, "0.18.3", "bca47a24d69a3179951f51f1db6d3ed63bca9017f476fe520eb78602d45f7756", [:mix], [{:castore, "~> 1.0", [hex: :castore, repo: "hexpm", optional: true]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "746f404fcd09d5029f1b211739afb8fb8575d775b21f6a3908e7ce3e640724c6"},
"file_system": {:hex, :file_system, "1.0.1", "79e8ceaddb0416f8b8cd02a0127bdbababe7bf4a23d2a395b983c1f8b3f73edd", [:mix], [], "hexpm", "4414d1f38863ddf9120720cd976fce5bdde8e91d8283353f0e31850fa89feb9e"},
"jason": {:hex, :jason, "1.4.4", "b9226785a9aa77b6857ca22832cffa5d5011a667207eb2a0ad56adb5db443b8a", [:mix], [{:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "c5eb0cab91f094599f94d55bc63409236a8ec69a21a67814529e8d5f6cc90b3b"},
"libgraph": {:hex, :libgraph, "0.16.0", "3936f3eca6ef826e08880230f806bfea13193e49bf153f93edcf0239d4fd1d07", [:mix], [], "hexpm", "41ca92240e8a4138c30a7e06466acc709b0cbb795c643e9e17174a178982d6bf"},
Expand Down

0 comments on commit b33e05c

Please sign in to comment.