-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
378 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
%Doctor.Config{ | ||
exception_moduledoc_required: true, | ||
failed: false, | ||
ignore_modules: [MjmlEEx], | ||
ignore_paths: [], | ||
min_module_doc_coverage: 40, | ||
min_module_spec_coverage: 0, | ||
min_overall_doc_coverage: 50, | ||
min_overall_spec_coverage: 0, | ||
moduledoc_required: true, | ||
raise: false, | ||
reporter: Doctor.Reporters.Full, | ||
struct_type_spec_required: true, | ||
umbrella: false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
github: [akoutmos] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
name: MJML EEx CI | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SHELL: sh | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
static_analysis: | ||
name: Static Analysis | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Set up Elixir | ||
uses: erlef/setup-elixir@v1 | ||
with: | ||
elixir-version: '1.13.3' | ||
otp-version: '24.2' | ||
- name: Restore dependencies cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: deps | ||
key: ${{ runner.os }}-mix-v2-${{ hashFiles('**/mix.lock') }} | ||
restore-keys: ${{ runner.os }}-mix-v2- | ||
- name: Install dependencies | ||
run: mix deps.get | ||
- name: Restore PLT cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: priv/plts | ||
key: ${{ runner.os }}-mix-v2-${{ hashFiles('**/mix.lock') }} | ||
restore-keys: ${{ runner.os }}-mix-v2- | ||
- name: Mix Formatter | ||
run: mix format --check-formatted | ||
- name: Check for compiler warnings | ||
run: mix compile --warnings-as-errors | ||
- name: Credo strict checks | ||
run: mix credo --strict | ||
- name: Doctor documentation checks | ||
run: mix doctor | ||
|
||
unit_test: | ||
name: Run ExUnit tests | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
elixir: | ||
- '1.13.3' | ||
otp: | ||
- '24.2' | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Set up Elixir | ||
uses: erlef/setup-elixir@v1 | ||
with: | ||
elixir-version: ${{ matrix.elixir }} | ||
otp-version: ${{ matrix.otp }} | ||
- name: Restore dependencies cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: deps | ||
key: ${{ runner.os }}-mix-v2-${{ hashFiles('**/mix.lock') }} | ||
restore-keys: ${{ runner.os }}-mix-v2- | ||
- name: Install dependencies | ||
run: mix deps.get | ||
- name: ExUnit tests | ||
env: | ||
MIX_ENV: test | ||
run: mix coveralls.github |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import Config | ||
|
||
if Mix.env() != :prod do | ||
config :git_hooks, | ||
auto_install: true, | ||
verbose: true, | ||
hooks: [ | ||
pre_commit: [ | ||
tasks: [ | ||
{:cmd, "mix format --check-formatted"}, | ||
{:cmd, "mix compile --warnings-as-errors"}, | ||
{:cmd, "mix credo --strict"}, | ||
{:cmd, "mix doctor"}, | ||
{:cmd, "mix test"} | ||
] | ||
] | ||
] | ||
end |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.