release: fix v1.2.5 format gate #79
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: | |
| tags: | |
| - "v[0-9]*.[0-9]*.[0-9]*" | |
| permissions: | |
| contents: read | |
| jobs: | |
| ci: | |
| name: Test and build | |
| runs-on: ubuntu-24.04 | |
| services: | |
| redis: | |
| image: redis:7 | |
| ports: | |
| - 6379:6379 | |
| options: >- | |
| --health-cmd "redis-cli ping" | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Elixir | |
| uses: erlef/setup-beam@v1 | |
| with: | |
| elixir-version: "1.16" | |
| otp-version: "26" | |
| - name: Install dependencies | |
| run: mix deps.get | |
| - name: Check formatting | |
| run: mix format --check-formatted | |
| - name: Run tests | |
| env: | |
| MN_GRPC_PORT: "55051" | |
| MN_API_PORT: "54000" | |
| MN_REDIS_URL: "redis://localhost:6379/0" | |
| run: mix test | |
| - name: Compile with warnings as errors | |
| run: mix compile --warnings-as-errors | |
| - name: Check shell scripts | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| while IFS= read -r -d '' script; do | |
| bash -n "$script" | |
| done < <(find scripts -name '*.sh' -print0) |