Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ValidationError formatter #44

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 30 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Created with GitHubActions version 0.2.22
# Created with GitHubActions version 0.2.23
name: CI
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -14,27 +14,43 @@ jobs:
elixir:
- '1.13.4'
- '1.14.5'
- '1.15.7'
- '1.16.2'
- '1.15.8'
- '1.16.3'
- '1.17.1'
otp:
- '22.3'
- '23.3'
- '24.3'
- '25.3'
- '26.2'
- '27.0'
exclude:
- elixir: '1.13.4'
otp: '26.2'
- elixir: '1.13.4'
otp: '27.0'
- elixir: '1.14.5'
otp: '22.3'
- elixir: '1.14.5'
otp: '27.0'
- elixir: '1.15.8'
otp: '22.3'
- elixir: '1.15.7'
- elixir: '1.15.8'
otp: '23.3'
- elixir: '1.15.8'
otp: '27.0'
- elixir: '1.16.3'
otp: '22.3'
- elixir: '1.15.7'
- elixir: '1.16.3'
otp: '23.3'
- elixir: '1.16.2'
- elixir: '1.16.3'
otp: '27.0'
- elixir: '1.17.1'
otp: '22.3'
- elixir: '1.16.2'
- elixir: '1.17.1'
otp: '23.3'
- elixir: '1.17.1'
otp: '24.3'
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -58,28 +74,28 @@ jobs:
with:
path: test/support/plts
key: test/support/plts-${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
if: ${{ contains(matrix.elixir, '1.16.2') && contains(matrix.otp, '26.2') }}
if: ${{ contains(matrix.elixir, '1.17.1') && contains(matrix.otp, '27.0') }}
- name: Get dependencies
run: mix deps.get
- name: Compile dependencies
run: MIX_ENV=test mix deps.compile
- name: Compile project
run: MIX_ENV=test mix compile --warnings-as-errors
- name: Check unused dependencies
if: ${{ contains(matrix.elixir, '1.16.2') && contains(matrix.otp, '26.2') }}
if: ${{ contains(matrix.elixir, '1.17.1') && contains(matrix.otp, '27.0') }}
run: mix deps.unlock --check-unused
- name: Check code format
if: ${{ contains(matrix.elixir, '1.16.2') && contains(matrix.otp, '26.2') }}
if: ${{ contains(matrix.elixir, '1.17.1') && contains(matrix.otp, '27.0') }}
run: mix format --check-formatted
- name: Lint code
if: ${{ contains(matrix.elixir, '1.16.2') && contains(matrix.otp, '26.2') }}
if: ${{ contains(matrix.elixir, '1.17.1') && contains(matrix.otp, '27.0') }}
run: mix credo --strict
- name: Run tests
run: mix test
if: ${{ !(contains(matrix.elixir, '1.16.2') && contains(matrix.otp, '26.2')) }}
if: ${{ !(contains(matrix.elixir, '1.17.1') && contains(matrix.otp, '27.0')) }}
- name: Run tests with coverage
run: mix coveralls.github
if: ${{ contains(matrix.elixir, '1.16.2') && contains(matrix.otp, '26.2') }}
if: ${{ contains(matrix.elixir, '1.17.1') && contains(matrix.otp, '27.0') }}
- name: Static code analysis
run: mix dialyzer --format github --force-check
if: ${{ contains(matrix.elixir, '1.16.2') && contains(matrix.otp, '26.2') }}
if: ${{ contains(matrix.elixir, '1.17.1') && contains(matrix.otp, '27.0') }}
Loading
Loading