fix: correct branch reaction for GitHub Actions #6
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 | |
| types: [opened, synchronize] | |
| jobs: | |
| test: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-24.04] | |
| include: | |
| - pair: { elixir: "1.15.8", otp: "25.3" } | |
| - pair: { elixir: "1.18.4", otp: "28.0" } | |
| format: true | |
| name: OTP / Elixir (${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }} | |
| env: | |
| MIX_ENV: test | |
| steps: | |
| - name: ☁️ Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: 💧 Setup Elixir ${{ matrix.elixir }} (OTP ${{matrix.otp}}) | |
| uses: marmelasoft/elixir-setup@v2 | |
| with: | |
| elixir-version: ${{ matrix.pair.elixir }} | |
| otp-version: ${{ matrix.pair.otp }} | |
| cache-plts: true | |
| - name: 🔬 Run the tests | |
| run: mix test --warnings-as-errors --cover | |
| - name: 🧹 Check code formating | |
| run: mix format --check-formatted | |
| if: ${{ matrix.format }} |