Tighten CI checks and add CLAUDE.md #14
Workflow file for this run
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: Elixir CI | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| name: Build and test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Elixir | |
| uses: erlef/setup-beam@fc68ffb90438ef2936bbb3251622353b3dcb2f93 # v1.24.0 | |
| with: | |
| elixir-version: '1.19.5' | |
| otp-version: '28' | |
| - name: Restore dependencies cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: deps | |
| key: ${{ runner.os }}-otp28-elixir1.19-mix-${{ hashFiles('**/mix.lock') }} | |
| restore-keys: ${{ runner.os }}-otp28-elixir1.19-mix- | |
| - name: Install dependencies | |
| run: mix deps.get | |
| - name: Check unused dependencies | |
| run: mix deps.unlock --check-unused | |
| - name: Check formatting | |
| run: mix format --check-formatted | |
| - name: Audit Hex dependencies | |
| run: mix hex.audit | |
| - name: Compile (warnings as errors) | |
| run: mix compile --warnings-as-errors | |
| - name: Build docs (warnings as errors) | |
| run: mix docs --warnings-as-errors | |
| - name: Run tests | |
| run: mix test |