Skip to content

Commit

Permalink
Improve CI
Browse files Browse the repository at this point in the history
  • Loading branch information
almirsarajcic committed Jun 21, 2024
1 parent 73f77a0 commit c83dbec
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
13 changes: 7 additions & 6 deletions .github/github_workflows.ex
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
defmodule GithubWorkflows do
@moduledoc false
@moduledoc """
Run `mix github_workflows.generate` after updating this module.
See https://hexdocs.pm/github_workflows_generator.
"""

def get do
%{
Expand Down Expand Up @@ -95,7 +98,7 @@ defmodule GithubWorkflows do
[
name: "Run dialyzer",
env: [MIX_ENV: "test"],
run: "mix dialyzer --format short 2>&1"
run: "mix dialyzer"
]
]
)
Expand Down Expand Up @@ -217,11 +220,9 @@ defmodule GithubWorkflows do
[
name: "Run tests",
env: [
MIX_ENV: "test",
MUX_CREDENTIALS_EMAIL: "${{ secrets.MUX_CREDENTIALS_EMAIL }}",
MUX_CREDENTIALS_PASSWORD: "${{ secrets.MUX_CREDENTIALS_PASSWORD }}"
MIX_ENV: "test"
],
run: "mix test --cover"
run: "mix test --cover --warnings-as-errors"
]
]
)
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ jobs:
- name: Run dialyzer
env:
MIX_ENV: test
run: mix dialyzer --format short 2>&1
run: mix dialyzer
format:
needs: compile
name: Format
Expand Down Expand Up @@ -275,9 +275,7 @@ jobs:
- name: Run tests
env:
MIX_ENV: test
MUX_CREDENTIALS_EMAIL: ${{ secrets.MUX_CREDENTIALS_EMAIL }}
MUX_CREDENTIALS_PASSWORD: ${{ secrets.MUX_CREDENTIALS_PASSWORD }}
run: mix test --cover
run: mix test --cover --warnings-as-errors
unused_deps:
needs: compile
name: Check unused deps
Expand Down

0 comments on commit c83dbec

Please sign in to comment.