Skip to content

Commit 89c37af

Browse files
committed
Switched to Github Actions.
1 parent 8e966a0 commit 89c37af

File tree

3 files changed

+55
-27
lines changed

3 files changed

+55
-27
lines changed

.github/workflows/main.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Common Test
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- 'main'
7+
- 'develop'
8+
push:
9+
branches:
10+
- 'main'
11+
- 'develop'
12+
13+
jobs:
14+
build:
15+
name: Test on OTP ${{ matrix.otp_version }} and ${{ matrix.os }}
16+
runs-on: ${{ matrix.os }}
17+
18+
strategy:
19+
matrix:
20+
otp_version: ['24', '23', '22', '21']
21+
os: [ubuntu-latest]
22+
23+
steps:
24+
- uses: actions/checkout@v2
25+
- uses: erlef/setup-beam@v1
26+
with:
27+
otp-version: ${{ matrix.otp_version }}
28+
rebar3-version: '3.15'
29+
30+
- name: Compile
31+
run: rebar3 compile
32+
- name: EUnit tests
33+
run: rebar3 eunit
34+
- name: Dialyzer
35+
run: rebar3 dialyzer
36+
- name: XRef
37+
run: rebar3 xref
38+
39+
- name: Covertool
40+
if: ${{ always() }}
41+
run: rebar3 covertool generate
42+
- uses: codecov/codecov-action@v1
43+
with:
44+
file: _build/test/covertool/elli_websocket.covertool.xml
45+
env_vars: OTP_VERSION

.travis.yml

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

rebar.config

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
{platform_define, "^2[1-9]", post20}
44
]}.
55

6+
{deps, [
7+
{elli, "3.1.0"}
8+
]}.
9+
610
{xref_checks, [undefined_function_calls, locals_not_used]}.
711

812
{dialyzer, [{base_plt_apps, [elli]}]}.
@@ -11,12 +15,10 @@
1115
{test, [
1216
{erl_first_files, [
1317
"src/elli_websocket_handler"
14-
]},
15-
{deps, [{elli, "3.1.0"}]}
18+
]}
1619
]},
1720
{docs, [
1821
{deps, [
19-
{elli, "3.1.0"},
2022
{edown, "0.8.1"}
2123
]}
2224
]}
@@ -37,14 +39,15 @@
3739
]}.
3840

3941
{project_plugins, [
40-
{coveralls, "1.5.0"},
42+
{covertool, "2.0.3"},
4143
{rebar3_lint, "0.1.10"}
4244
]}.
4345

4446
{provider_hooks, [{pre, [{eunit, lint}]}]}.
4547

4648
{cover_enabled, true}.
4749
{cover_export_enabled, true}.
48-
%% {cover_excl_mods, []}.
49-
{coveralls_coverdata, "_build/test/cover/eunit.coverdata"}.
50-
{coveralls_service_name, "travis-ci"}.
50+
{cover_excl_mods, [
51+
elli_handler
52+
]}.
53+
{covertool, [{coverdata_files, ["eunit.coverdata"]}]}.

0 commit comments

Comments
 (0)