Merge pull request #1 from lukaszsamson/codex/a2ui-v0-9-and-v0-9-1-su… #10
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| env: | |
| MIX_ENV: test | |
| jobs: | |
| test: | |
| name: Test (OTP ${{ matrix.otp }} / Elixir ${{ matrix.elixir }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - elixir: "1.16" | |
| otp: "26" | |
| compile_args: "--warnings-as-errors" | |
| - elixir: "1.17" | |
| otp: "27" | |
| compile_args: "--warnings-as-errors" | |
| - elixir: "1.18" | |
| otp: "27" | |
| compile_args: "--warnings-as-errors" | |
| - elixir: "1.19" | |
| otp: "28" | |
| compile_args: "--warnings-as-errors" | |
| - elixir: "1.20" | |
| otp: "29" | |
| # Elixir 1.20 reports type warnings from Phoenix-generated HEEx code. | |
| compile_args: "" | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Set up Elixir | |
| uses: erlef/setup-beam@v1 | |
| with: | |
| elixir-version: ${{ matrix.elixir }} | |
| otp-version: ${{ matrix.otp }} | |
| - name: Restore deps cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: deps | |
| key: ${{ runner.os }}-mix-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-mix-${{ matrix.otp }}-${{ matrix.elixir }}- | |
| - name: Restore build cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: _build | |
| key: ${{ runner.os }}-build-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-build-${{ matrix.otp }}-${{ matrix.elixir }}- | |
| - name: Install dependencies | |
| run: mix deps.get | |
| - name: Compile | |
| run: mix compile ${{ matrix.compile_args }} | |
| - name: Run tests | |
| run: mix test | |
| dialyzer: | |
| name: Dialyzer | |
| runs-on: ubuntu-latest | |
| env: | |
| MIX_ENV: dev | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Set up Elixir | |
| uses: erlef/setup-beam@v1 | |
| with: | |
| elixir-version: "1.19" | |
| otp-version: "28" | |
| - name: Restore deps cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: deps | |
| key: ${{ runner.os }}-mix-28-1.19-${{ hashFiles('**/mix.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-mix-28-1.19- | |
| - name: Restore build cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: _build | |
| key: ${{ runner.os }}-build-28-1.19-${{ hashFiles('**/mix.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-build-28-1.19- | |
| - name: Restore PLT cache | |
| uses: actions/cache@v4 | |
| id: plt-cache | |
| with: | |
| path: _build/dev/*.plt | |
| key: ${{ runner.os }}-plt-28-1.19-${{ hashFiles('**/mix.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-plt-28-1.19- | |
| - name: Install dependencies | |
| run: mix deps.get | |
| - name: Run Dialyzer | |
| run: mix dialyzer | |
| format: | |
| name: Format | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Set up Elixir | |
| uses: erlef/setup-beam@v1 | |
| with: | |
| elixir-version: "1.19" | |
| otp-version: "28" | |
| - name: Install dependencies | |
| run: mix deps.get | |
| - name: Check formatting | |
| run: mix format --check-formatted |