diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index bebad11..505692a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -84,6 +84,8 @@ jobs: run: mix format --check-formatted Test: + name: Test (Elixir ${{ matrix.versions.elixir }} OTP ${{ matrix.versions.otp }}) + runs-on: ubuntu-latest env: @@ -106,7 +108,9 @@ jobs: - name: Setup Elixir uses: stordco/actions-elixir/setup@v1 with: + elixir-version: ${{ matrix.versions.elixir }} github-token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} + otp-version: ${{ matrix.versions.otp }} - name: Compile run: mix compile --warnings-as-errors @@ -114,3 +118,14 @@ jobs: - name: Test run: mix test + strategy: + fail-fast: false + matrix: + versions: + - elixir: 1.13 + otp: 25 + - elixir: 1.14 + otp: 25 + - elixir: 1.15 + otp: 26 + diff --git a/.github/workflows/production.yaml b/.github/workflows/production.yaml index 2a6b98f..6304a1e 100644 --- a/.github/workflows/production.yaml +++ b/.github/workflows/production.yaml @@ -13,3 +13,23 @@ concurrency: group: Production jobs: + Hex: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Elixir + uses: stordco/actions-elixir/setup@v1 + with: + github-token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} + + - name: Compile + run: mix compile --docs + + - name: Publish + run: mix hex.publish --yes + env: + HEX_API_KEY: ${{ secrets.HEX_API_KEY }} +