feat: encode structs via optional Torque.Encoder protocol #205
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| env: | |
| MIX_ENV: test | |
| TORQUE_BUILD: true | |
| jobs: | |
| format: | |
| name: Format | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: erlef/setup-beam@v1 | |
| with: | |
| otp-version: "27" | |
| elixir-version: "1.18" | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt, clippy | |
| - run: mix deps.get | |
| - run: mix format --check-formatted | |
| - run: cargo fmt --check | |
| - run: cargo clippy -- -D warnings | |
| test: | |
| name: Test (OTP ${{ matrix.otp }} / Elixir ${{ matrix.elixir }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| include: | |
| - otp: "28" | |
| elixir: "1.18" | |
| - otp: "27" | |
| elixir: "1.18" | |
| - otp: "26" | |
| elixir: "1.17" | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: erlef/setup-beam@v1 | |
| with: | |
| otp-version: ${{ matrix.otp }} | |
| elixir-version: ${{ matrix.elixir }} | |
| - uses: dtolnay/rust-toolchain@stable | |
| - run: mix deps.get | |
| - run: mix compile --warnings-as-errors | |
| - run: mix test |