Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/actions/elixir-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,22 +57,22 @@ 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') }}
restore-keys: |
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}}/
Expand All @@ -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
Expand All @@ -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' }}
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/elixir-build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/elixir-quality-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/elixir-retired-packages-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions lib/channel_spec/socket.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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__()
Expand All @@ -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__()
Expand Down
Loading