From bbecd2cd9b253fce5db30dfe601246b2994d1687 Mon Sep 17 00:00:00 2001 From: hyperpolymath <6759885+hyperpolymath@users.noreply.github.com> Date: Tue, 26 May 2026 11:04:49 +0100 Subject: [PATCH] chore(ci): convert elixir-ci.yml to thin wrapper of standards reusable Replaces 50+ lines of duplicated Elixir CI plumbing with a 16-line wrapper calling hyperpolymath/standards/.github/workflows/elixir-ci-reusable.yml at SHA 4fdf4314b4ab54269adbaff10e30e483b5e86845 (standards#174 HEAD). Same pattern as the rust-ci wrapper sweep filed 2026-05-26. The pin to a not-yet-merged SHA is intentional: this wrapper goes live only after standards#174 lands on main. Refs standards#174. --- .github/workflows/elixir-ci.yml | 56 ++++++--------------------------- 1 file changed, 9 insertions(+), 47 deletions(-) diff --git a/.github/workflows/elixir-ci.yml b/.github/workflows/elixir-ci.yml index 68917f9..57fa7c5 100644 --- a/.github/workflows/elixir-ci.yml +++ b/.github/workflows/elixir-ci.yml @@ -1,54 +1,16 @@ # SPDX-License-Identifier: MPL-2.0 -permissions: - contents: read +# Thin wrapper around hyperpolymath/standards elixir-ci-reusable.yml. +# See standards#174 for the reusable's purpose. name: Elixir CI on: [push, pull_request] -npermissions: - contents: read - -jobs: - test: - runs-on: ubuntu-latest -npermissions: - contents: read - - env: - MIX_ENV: test - steps: - - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 - - uses: erlef/setup-beam@e6d7c94229049569db56a7ad5a540c051a010af9 # v1 - with: - otp-version: '26' -npermissions: - contents: read - - elixir-version: '1.15' -npermissions: +permissions: contents: read - - - name: Cache deps - uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5 - with: - path: deps - key: deps-${{ hashFiles('mix.lock') }} - - - name: Install deps - run: mix deps.get - - - name: Compile - run: mix compile --warnings-as-errors - - - name: Credo lint - run: mix credo --strict - - - name: Dialyzer - run: mix dialyzer - - - name: Run tests - run: mix test --cover - - - name: Security check - run: mix deps.audit || true +jobs: + elixir-ci: + uses: hyperpolymath/standards/.github/workflows/elixir-ci-reusable.yml@4fdf4314b4ab54269adbaff10e30e483b5e86845 + with: + otp-version: "26" + elixir-version: "1.15"