Skip to content

Commit f82ad79

Browse files
committed
Move CI to github workflows. Add test coverage
1 parent 78bc768 commit f82ad79

File tree

7 files changed

+60
-58
lines changed

7 files changed

+60
-58
lines changed

.circleci/config.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/please--open-new-issues-in-membranefranework-membrane_core.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Lint and test
2+
3+
on: push
4+
5+
jobs:
6+
lint:
7+
runs-on: ubuntu-latest
8+
name: Lint (OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}})
9+
strategy:
10+
matrix:
11+
otp: ['26']
12+
elixir: ['1.15']
13+
steps:
14+
- uses: actions/checkout@v3
15+
- uses: erlef/setup-beam@v1
16+
with:
17+
otp-version: ${{matrix.otp}}
18+
elixir-version: ${{matrix.elixir}}
19+
- run: mix deps.get
20+
- run: mix credo
21+
- run: mix dialyzer
22+
- run: mix format --check-formatted
23+
- run: mix docs 2>&1 | (! grep -q "warning:")
24+
25+
test:
26+
runs-on: ubuntu-latest
27+
name: Test (OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}})
28+
strategy:
29+
matrix:
30+
otp: ['26']
31+
elixir: ['1.15']
32+
env:
33+
MIX_ENV: test
34+
steps:
35+
- uses: actions/checkout@v3
36+
- uses: erlef/setup-beam@v1
37+
with:
38+
otp-version: ${{matrix.otp}}
39+
elixir-version: ${{matrix.elixir}}
40+
- run: mix deps.get
41+
- run: mix coveralls.json
42+
- uses: codecov/codecov-action@v3

.github/workflows/on_issue_opened.yaml

Lines changed: 0 additions & 20 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
[![Hex.pm](https://img.shields.io/hexpm/v/ex_dtls.svg)](https://hex.pm/packages/ex_dtls)
44
[![API Docs](https://img.shields.io/badge/api-docs-yellow.svg?style=flat)](https://hexdocs.pm/ex_dtls/)
5-
[![CircleCI](https://circleci.com/gh/membraneframework/ex_dtls.svg?style=svg)](https://circleci.com/gh/membraneframework/ex_dtls)
5+
[![CI](https://img.shields.io/github/actions/workflow/status/elixir-webrtc/ex_dtls/ci.yml?logo=github&label=CI)](https://github.com/elixir-webrtc/ex_dtls/actions/workflows/ci.yml)
6+
[![codecov](https://codecov.io/gh/elixir-webrtc/ex_dtls/graph/badge.svg?token=E98NHC8B00)](https://codecov.io/gh/elixir-webrtc/ex_dtls)
67

78
DTLS and DTLS-SRTP handshake library for Elixir, based on [OpenSSL].
89

mix.exs

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ defmodule ExDTLS.Mixfile do
22
use Mix.Project
33

44
@version "0.14.0"
5-
@github_url "https://github.com/membraneframework/ex_dtls"
5+
@github_url "https://github.com/elixir-webrtc/ex_dtls"
66

77
def project do
88
[
@@ -23,7 +23,17 @@ defmodule ExDTLS.Mixfile do
2323
name: "ExDTLS",
2424
source_url: @github_url,
2525
homepage_url: "https://membrane.stream",
26-
docs: docs()
26+
docs: docs(),
27+
28+
# code coverage
29+
test_coverage: [tool: ExCoveralls],
30+
preferred_cli_env: [
31+
coveralls: :test,
32+
"coveralls.detail": :test,
33+
"coveralls.post": :test,
34+
"coveralls.html": :test,
35+
"coveralls.json": :test
36+
]
2737
]
2838
end
2939

@@ -41,7 +51,8 @@ defmodule ExDTLS.Mixfile do
4151
{:unifex, "~> 1.0"},
4252
{:ex_doc, "~> 0.29", only: :dev, runtime: false},
4353
{:dialyxir, "~> 1.0", only: :dev, runtime: false},
44-
{:credo, "~> 1.7", only: :dev, runtime: false}
54+
{:credo, "~> 1.7", only: :dev, runtime: false},
55+
{:excoveralls, "~> 0.14", only: [:dev, :test], runtime: false}
4556
]
4657
end
4758

@@ -62,10 +73,7 @@ defmodule ExDTLS.Mixfile do
6273
[
6374
maintainers: ["Membrane Team"],
6475
licenses: ["Apache-2.0"],
65-
links: %{
66-
"GitHub" => @github_url,
67-
"Membrane Framework Homepage" => "https://membrane.stream"
68-
},
76+
links: %{"GitHub" => @github_url},
6977
files: ["lib", "mix.exs", "README*", "LICENSE*", ".formatter.exs", "bundlex.exs", "c_src"],
7078
exclude_patterns: [~r"c_src/.*/_generated.*"]
7179
]

mix.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"earmark_parser": {:hex, :earmark_parser, "1.4.32", "fa739a0ecfa34493de19426681b23f6814573faee95dfd4b4aafe15a7b5b32c6", [:mix], [], "hexpm", "b8b0dd77d60373e77a3d7e8afa598f325e49e8663a51bcc2b88ef41838cca755"},
99
"erlex": {:hex, :erlex, "0.2.6", "c7987d15e899c7a2f34f5420d2a2ea0d659682c06ac607572df55a43753aa12e", [:mix], [], "hexpm", "2ed2e25711feb44d52b17d2780eabf998452f6efda104877a3881c2f8c0c0c75"},
1010
"ex_doc": {:hex, :ex_doc, "0.29.4", "6257ecbb20c7396b1fe5accd55b7b0d23f44b6aa18017b415cb4c2b91d997729", [:mix], [{:earmark_parser, "~> 1.4.31", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_elixir, "~> 0.14", [hex: :makeup_elixir, repo: "hexpm", optional: false]}, {:makeup_erlang, "~> 0.1", [hex: :makeup_erlang, repo: "hexpm", optional: false]}], "hexpm", "2c6699a737ae46cb61e4ed012af931b57b699643b24dabe2400a8168414bc4f5"},
11+
"excoveralls": {:hex, :excoveralls, "0.18.0", "b92497e69465dc51bc37a6422226ee690ab437e4c06877e836f1c18daeb35da9", [:mix], [{:castore, "~> 1.0", [hex: :castore, repo: "hexpm", optional: true]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "1109bb911f3cb583401760be49c02cbbd16aed66ea9509fc5479335d284da60b"},
1112
"file_system": {:hex, :file_system, "0.2.10", "fb082005a9cd1711c05b5248710f8826b02d7d1784e7c3451f9c1231d4fc162d", [:mix], [], "hexpm", "41195edbfb562a593726eda3b3e8b103a309b733ad25f3d642ba49696bf715dc"},
1213
"jason": {:hex, :jason, "1.4.0", "e855647bc964a44e2f67df589ccf49105ae039d4179db7f6271dfd3843dc27e6", [:mix], [{:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "79a3791085b2a0f743ca04cec0f7be26443738779d09302e01318f97bdb82121"},
1314
"makeup": {:hex, :makeup, "1.1.0", "6b67c8bc2882a6b6a445859952a602afc1a41c2e08379ca057c0f525366fc3ca", [:mix], [{:nimble_parsec, "~> 1.2.2 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "0a45ed501f4a8897f580eabf99a2e5234ea3e75a4373c8a52824f6e873be57a6"},

0 commit comments

Comments
 (0)