test: add auth controller tests #992
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
name: Code Quality | |
on: | |
pull_request: | |
branches: [main, master] | |
types: [opened, synchronize] | |
jobs: | |
style: | |
runs-on: ubuntu-latest | |
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}} | |
strategy: | |
matrix: | |
otp: [25.x] | |
elixir: [1.14.x] | |
steps: | |
- name: ☁️ Checkout repository | |
uses: actions/checkout@v3 | |
- name: 💧 Setup Elixir ${{ matrix.elixir }} (OTP ${{matrix.otp}}) | |
uses: ./.github/actions/elixir-setup | |
with: | |
otp-version: ${{ matrix.otp }} | |
elixir-version: ${{ matrix.elixir }} | |
build-flags: --all-warnings --warnings-as-errors | |
- name: 📏 Check code formating | |
run: mix format --check-formatted | |
if: always() | |
- name: 🔍 Lint the code | |
run: mix credo --strict --all | |
if: always() |