File tree Expand file tree Collapse file tree 3 files changed +55
-27
lines changed Expand file tree Collapse file tree 3 files changed +55
-27
lines changed Original file line number Diff line number Diff line change
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
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3
3
{platform_define , " ^2[1-9]" , post20 }
4
4
]}.
5
5
6
+ {deps , [
7
+ {elli , " 3.1.0" }
8
+ ]}.
9
+
6
10
{xref_checks , [undefined_function_calls , locals_not_used ]}.
7
11
8
12
{dialyzer , [{base_plt_apps , [elli ]}]}.
11
15
{test , [
12
16
{erl_first_files , [
13
17
" src/elli_websocket_handler"
14
- ]},
15
- {deps , [{elli , " 3.1.0" }]}
18
+ ]}
16
19
]},
17
20
{docs , [
18
21
{deps , [
19
- {elli , " 3.1.0" },
20
22
{edown , " 0.8.1" }
21
23
]}
22
24
]}
37
39
]}.
38
40
39
41
{project_plugins , [
40
- {coveralls , " 1.5.0 " },
42
+ {covertool , " 2.0.3 " },
41
43
{rebar3_lint , " 0.1.10" }
42
44
]}.
43
45
44
46
{provider_hooks , [{pre , [{eunit , lint }]}]}.
45
47
46
48
{cover_enabled , true }.
47
49
{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" ]}]}.
You can’t perform that action at this time.
0 commit comments