Skip to content

Commit

Permalink
Fix #125: Move test files to test/files (#126)
Browse files Browse the repository at this point in the history
* Fix #125: Move test files to test/files

* Remove debug

* Update rebar3 for CI

* Remove CI check with old rebar3 that was causing issues

* The local update was doing nothing at all
  • Loading branch information
Brujo Benavides authored May 17, 2021
1 parent 5e84092 commit 9666a9f
Show file tree
Hide file tree
Showing 91 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/erlang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ jobs:

strategy:
matrix:
otp: [21.3, 22.0.7, 22.3, 23.0.4, 23.2.7.0, 24.0]
otp: [21.3, 22.3, 23.0.4, 23.2.7.0, 24.0]
container:
image: erlang:${{ matrix.otp }}-alpine

steps:
- uses: actions/checkout@v2
- name: Check rebar3 version
run: rebar3 --version
- name: Compile
run: rebar3 compile
- name: Format check
Expand Down
2 changes: 1 addition & 1 deletion elvis.config
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[#{dirs => ["src", "src/**"],
filter => "*.erl",
ruleset => erl_files},
#{dirs => ["test/**"],
#{dirs => ["test"], %% Don't analyze test/files
filter => "*.erl",
ruleset => erl_files,
rules => [{elvis_style, no_debug_call, disable}]}]}]}].
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion test/hank_test_utils.erl
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ set_cwd(RelativePathOrFilename) ->

abs_test_path(FilePath) ->
filename:join(
code:priv_dir(rebar3_hank), "test_files/" ++ FilePath).
code:lib_dir(rebar3_hank), "test/files/" ++ FilePath).
2 changes: 1 addition & 1 deletion test/unused_hrls_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ local_include(_) ->
ok =
file:set_cwd(
filename:join(
code:priv_dir(rebar3_hank), "test_files/unused_hrls/lib/app1")),
code:lib_dir(rebar3_hank), "test/files/unused_hrls/lib/app1")),
OnlyApp1 =
["include/header.hrl", "src/app1_not_using_header.erl", "src/app1_include.erl"],
[] = analyze(OnlyApp1),
Expand Down

0 comments on commit 9666a9f

Please sign in to comment.