Skip to content

Commit

Permalink
Test action
Browse files Browse the repository at this point in the history
  • Loading branch information
hauleth committed Oct 9, 2019
1 parent 6ed3d9b commit ac2e7de
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/reviewdog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: reviewdog
on: [pull_request]
jobs:
elvis:
name: runner / elvis
runs-on: ubuntu-latest
container:
image: elixir:1.9.1-slim
steps:
- name: Check out code.
uses: actions/checkout@v1
- name: elvis
uses: hauleth/reviewdog-action-elvis@master
with:
github_token: ${{ secrets.github_token }}
- name: elvis-pr-review
uses: hauleth/reviewdog-action-elvis@master
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_build
14 changes: 14 additions & 0 deletions elvis.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[
{
elvis,
[
{config,
[#{dirs => ["test"],
filter => "*.erl",
ruleset => erl_files
}]
},
{output_format, plain}
]
}
].
3 changes: 3 additions & 0 deletions test/example.erl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-module(example).

fun(_foo) -> ok.

0 comments on commit ac2e7de

Please sign in to comment.