-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
List of changes: - ignore files from mix format - remove unused deps - resolve optional deps that failed the test
- Loading branch information
Showing
4 changed files
with
53 additions
and
4 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 |
---|---|---|
@@ -1,4 +1,8 @@ | ||
# Used by "mix format" | ||
[ | ||
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"] | ||
inputs: | ||
Enum.flat_map( | ||
["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"], | ||
&Path.wildcard(&1, match_dot: true) | ||
) -- ["test/fixtures/example.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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: CI | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
MIX_ENV: test | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- elixir: "1.12" | ||
otp: "22" | ||
os: ubuntu-20.04 | ||
- elixir: "1.18" | ||
otp: "27" | ||
os: ubuntu-24.04 | ||
lint: lint | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: erlef/setup-elixir@v1 | ||
with: | ||
otp-version: ${{matrix.otp}} | ||
elixir-version: ${{matrix.elixir}} | ||
|
||
- name: Install Dependencies | ||
run: mix deps.get --only test | ||
|
||
- run: mix format --check-formatted | ||
if: ${{ matrix.lint }} | ||
|
||
- run: mix deps.get && mix deps.unlock --check-unused | ||
if: ${{ matrix.lint }} | ||
|
||
- run: mix deps.compile | ||
|
||
- run: mix compile --warnings-as-errors | ||
if: ${{ matrix.lint }} | ||
|
||
- run: 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 +1,2 @@ | ||
ExUnit.start() | ||
Application.ensure_all_started(:makeup_html) |