fix(api): Existing alias check logic #77
This file contains hidden or 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: Lint | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| lint: | |
| name: Lint codebase | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v6 | |
| with: | |
| submodules: true | |
| - name: Create dummy dev.exs config | |
| run: | | |
| cp config/dev-template.exs config/dev.exs | |
| - name: Set up Elixir | |
| uses: erlef/setup-beam@v1 | |
| with: | |
| otp-version: 27 | |
| elixir-version: 1.19.5 | |
| - uses: actions/cache@v4 | |
| env: | |
| base-key: 27-1.19 | |
| with: | |
| path: | | |
| _build | |
| deps | |
| # Generate a hash of the OTP version and Elixir version | |
| key: ${{ env.base-key }}-mix-${{ hashFiles('**/mix.lock') }} | |
| restore-keys: ${{ env.base-key }}-mix | |
| - name: Install dependencies | |
| run: mix deps.get | |
| - name: Compile dependencies | |
| run: mix deps.compile | |
| - name: Compile project | |
| run: mix compile --strict | |
| - name: Lint (Credo) | |
| run: mix credo --strict --ignore 'TagTODO' | |
| - name: Lint (mix format) | |
| run: mix format --check-formatted |