diff --git a/.github/actions/elixir-setup/action.yml b/.github/actions/elixir-setup/action.yml index f0f56ba..cae1de5 100644 --- a/.github/actions/elixir-setup/action.yml +++ b/.github/actions/elixir-setup/action.yml @@ -57,14 +57,14 @@ runs: using: "composite" steps: - name: Setup elixir - uses: erlef/setup-beam@v1.15.4 + uses: erlef/setup-beam@v1 id: beam with: elixir-version: ${{ inputs.elixir-version }} otp-version: ${{ inputs.otp-version }} - name: Get deps cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: deps/ key: deps-${{ inputs.cache-key }}-${{ runner.os }}-${{ hashFiles('**/mix.lock') }} @@ -72,7 +72,7 @@ runs: deps-${{ inputs.cache-key }}-${{ runner.os }}- - name: Get build cache - uses: actions/cache@v2 + uses: actions/cache@v4 id: build-cache with: path: _build/${{env.MIX_ENV}}/ @@ -81,7 +81,7 @@ runs: build-${{ inputs.cache-key }}-${{ runner.os }}-${{ inputs.otp-version }}-${{ inputs.elixir-version }}-${{ env.MIX_ENV }}- - name: Get Hex cache - uses: actions/cache@v2 + uses: actions/cache@v4 id: hex-cache with: path: ~/.hex @@ -90,7 +90,7 @@ runs: hex-${{ inputs.cache-key }}-${{ runner.os }}-${{ inputs.otp-version }}-${{ inputs.elixir-version }}- - name: Get Mix cache - uses: actions/cache@v2 + uses: actions/cache@v4 id: mix-cache with: path: ${{ env.MIX_HOME || '~/.mix' }} diff --git a/.github/workflows/elixir-build-and-test.yml b/.github/workflows/elixir-build-and-test.yml index 2e33efe..2858a02 100644 --- a/.github/workflows/elixir-build-and-test.yml +++ b/.github/workflows/elixir-build-and-test.yml @@ -11,23 +11,23 @@ on: jobs: build: name: Elixir Unit Tests - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest env: MIX_ENV: test strategy: matrix: include: - - elixir-version: "1.13.4" - otp-version: "24.3" - - elixir-version: "1.13.4" - otp-version: "25.0.2" - - elixir-version: "1.14.3" - otp-version: "25.2" - - elixir-version: "1.15.5" - otp-version: "26" + - elixir-version: "1.15.7" + otp-version: "26.2" + - elixir-version: "1.16.3" + otp-version: "26.2" + - elixir-version: "1.17.3" + otp-version: "27.1" + - elixir-version: "1.18.4" + otp-version: "27.2" steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup Elixir Project uses: ./.github/actions/elixir-setup diff --git a/.github/workflows/elixir-quality-checks.yml b/.github/workflows/elixir-quality-checks.yml index 4d65051..07ffcaf 100644 --- a/.github/workflows/elixir-quality-checks.yml +++ b/.github/workflows/elixir-quality-checks.yml @@ -17,12 +17,12 @@ jobs: # test stuff that isn't really relevant. # The other checks don't really care what environment they run in. MIX_ENV: dev - elixir: "1.15.4" - otp: "26.0.2" + elixir: "1.18.4" + otp: "27.2" steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup Elixir Project uses: ./.github/actions/elixir-setup diff --git a/.github/workflows/elixir-retired-packages-check.yml b/.github/workflows/elixir-retired-packages-check.yml index e49a0c1..6493e04 100644 --- a/.github/workflows/elixir-retired-packages-check.yml +++ b/.github/workflows/elixir-retired-packages-check.yml @@ -14,12 +14,12 @@ jobs: runs-on: ubuntu-latest env: MIX_ENV: dev - elixir: "1.15.4" - otp: "26.0.2" + elixir: "1.18.4" + otp: "27.2" steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup Elixir Project uses: ./.github/actions/elixir-setup diff --git a/lib/channel_spec/socket.ex b/lib/channel_spec/socket.ex index 208a65d..b8ad4fd 100644 --- a/lib/channel_spec/socket.ex +++ b/lib/channel_spec/socket.ex @@ -252,7 +252,7 @@ defmodule ChannelSpec.Socket do end defp get_operations(%ChannelHandler.Dsl.Event{} = event, _router, _prefix) do - Code.ensure_compiled(event.module) + Code.ensure_compiled!(event.module) if function_exported?(event.module, :__channel_operations__, 0) do operations = event.module.__channel_operations__() @@ -279,7 +279,7 @@ defmodule ChannelSpec.Socket do end defp get_operations(%ChannelHandler.Dsl.Delegate{} = delegate, _router, _prefix) do - Code.ensure_compiled(delegate.module) + Code.ensure_compiled!(delegate.module) if function_exported?(delegate.module, :__channel_operations__, 0) do operations = delegate.module.__channel_operations__()