Repository navigation
Fix item scans around dead letters and lease extension #29
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", "develop"] | |
| pull_request: | |
| branches: ["main", "develop"] | |
| env: | |
| MIX_ENV: test | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-24.04 | |
| name: Test on OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - elixir: "1.17.3" | |
| otp: "27.2" | |
| - elixir: "1.19.4" | |
| otp: "28.3" | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install Elixir and Erlang | |
| uses: erlef/setup-beam@v1 | |
| with: | |
| elixir-version: ${{ matrix.elixir }} | |
| otp-version: ${{ matrix.otp }} | |
| install-hex: true | |
| install-rebar: true | |
| - name: Restore deps and _build cache | |
| uses: actions/cache@v3 | |
| with: | |
| path: | | |
| deps | |
| _build | |
| key: ${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles('**/mix.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }} | |
| - name: Clean to rule out incremental build as a source of flakiness | |
| if: github.run_attempt != '1' | |
| run: | | |
| mix deps.clean --all | |
| mix clean | |
| shell: sh | |
| - name: Install dependencies | |
| run: mix deps.get | |
| - name: Compiles without warnings | |
| run: mix compile --warnings-as-errors | |
| - name: Check Formatting | |
| if: matrix.elixir == '1.19.4' | |
| run: mix format --check-formatted | |
| - name: Credo | |
| run: mix credo --strict | |
| # Define how to cache the `priv/plts` directory. After the first run, | |
| # this speeds up dialyzer runs a lot. | |
| - name: Cache PLTs | |
| id: cache-plts | |
| uses: actions/cache@v3 | |
| with: | |
| path: priv/plts | |
| key: ${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}-plts-${{ hashFiles('**/mix.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}-plts- | |
| - name: Dialyzer | |
| run: mix dialyzer | |
| - name: Run tests | |
| run: mix coveralls.github |