generated from aifrak/template-repo
-
Notifications
You must be signed in to change notification settings - Fork 0
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
13 changed files
with
136 additions
and
26 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,16 @@ | ||
# Override default config from .check.exs | ||
[ | ||
tools: [ | ||
{ | ||
:ex_unit, | ||
"mix coveralls.json", | ||
env: %{"MIX_ENV" => "test"}, | ||
detect: [ | ||
{:package, :excoveralls, else: :skip}, | ||
{:file, "coveralls.json", else: :skip}, | ||
{:file, "codecov.yml", else: :skip} | ||
], | ||
retry: "mix coveralls.json --failed" | ||
} | ||
] | ||
] |
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,16 @@ | ||
# Override default config from .check.exs | ||
[ | ||
tools: [ | ||
{ | ||
:ex_unit, | ||
"mix test.cover", | ||
env: %{"MIX_ENV" => "test"}, | ||
detect: [ | ||
{:package, :excoveralls, else: :skip}, | ||
{:file, "coveralls.json", else: :skip}, | ||
{:file, "codecov.yml", else: :skip} | ||
], | ||
retry: "mix test.cover --failed" | ||
} | ||
] | ||
] |
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
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 |
---|---|---|
|
@@ -116,12 +116,12 @@ jobs: | |
- name: Fetch and compile Elixir dependencies | ||
if: steps.elixir-deps-cache.outputs.cache-hit != 'true' | ||
run: | | ||
./run dc:exec bash -c "mix deps.get && mix deps.compile" | ||
./run dc:exec mix install_deps.ci | ||
- name: Install node modules | ||
if: steps.node-modules-cache.outputs.cache-hit != 'true' | ||
run: | | ||
./run dc:exec bash -c "npm ci --quiet" | ||
./run dc:exec npm ci --quiet | ||
# ---------------------------------------------- # | ||
# Application # | ||
|
@@ -130,8 +130,15 @@ jobs: | |
- name: Compile Elixir application | ||
if: steps.elixir-build-cache.outputs.cache-hit != 'true' | ||
run: | | ||
./run dc:exec bash -c "MIX_ENV=test mix compile" | ||
./run dc:exec mix compile.ci | ||
- name: Run all checks | ||
run: | | ||
./run dc:exec mix check | ||
./run dc:exec mix check.ci | ||
- name: Upload Code Coverage report | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: ./cover/excoveralls.json | ||
fail_ci_if_error: true |
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
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,8 @@ | ||
coverage: | ||
status: | ||
project: | ||
default: | ||
target: 100% | ||
patch: | ||
default: | ||
target: 100% |
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,7 @@ | ||
{ | ||
"print_summary": false, | ||
"coverage_options": { | ||
"minimum_coverage": 100, | ||
"treat_no_relevant_lines_as_covered": true | ||
} | ||
} |
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
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