-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# This is a combination of 3 commits. (#47)
# This is the 1st commit message: added github action (tentative) # The commit message #2 will be skipped: # changed the coveralls-endpoint # The commit message #3 will be skipped: # DELETE THE KEY
- Loading branch information
1 parent
07736d4
commit 935cfc6
Showing
17 changed files
with
166 additions
and
40 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,42 @@ | ||
name: Run full Elixir workflow | ||
|
||
on: | ||
pull_request: | ||
types: [ opened, reopened, edited ] | ||
branches: | ||
- master | ||
push: | ||
branches: | ||
- add_github_action | ||
workflow_dispatch: | ||
jobs: | ||
elixir_workflow: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
elixir-version: ['1.12'] | ||
otp: ['22.0'] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Elixir | ||
uses: erlef/setup-beam@v1 | ||
with: | ||
otp-version: '22.0' | ||
elixir-version: '1.12' | ||
- name: Install Dependencies | ||
run: mix deps.get | ||
- name: Compile Repository | ||
run: mix compile --warnings-as-errors | ||
- name: Check Code Coverage & Upload to Coveralls.io | ||
run: MIX_ENV=test mix coveralls.github --max-cases 1 | ||
env: | ||
API_KEY: ${{ secrets.API_KEY }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Run Static Code Analysis for Elixir | ||
run: mix credo | ||
- name: Run Static Code Analysis for Erlang | ||
run: mix dialyzer --halt-exit-status | ||
- name: Run Elixir Tests | ||
env: | ||
API_KEY: ${{ secrets.API_KEY }} | ||
run: mix deps.get && mix test |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
use Mix.Config | ||
import Config | ||
|
||
import_config "#{Mix.env}.exs" |
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 |
---|---|---|
@@ -1,4 +1,7 @@ | ||
use Mix.Config | ||
import Config | ||
|
||
config :lob_elixir, | ||
api_key: System.get_env("LOB_API_KEY") | ||
api_key: System.get_env("API_KEY") | ||
|
||
# config :pre_commit, | ||
# commands: ["test", "credo", "dialyzer", "coveralls"] |
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
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
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
Oops, something went wrong.