Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix depcrecation warnings & CI #34

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
20 changes: 14 additions & 6 deletions .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,23 @@ jobs:
build:
runs-on: ubuntu-latest

name: Test on OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
strategy:
# Specify the OTP and Elixir versions to use when building
# and running the workflow steps.
matrix:
otp: ['25.2'] # Define the OTP version [required]
elixir: ['1.13.4'] # Define the elixir version [required]

steps:
- uses: actions/checkout@v2
- name: Setup elixir
uses: actions/setup-elixir@v1

# Step: Setup Elixir + Erlang image as the base.
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: 1.9.4 # Define the elixir version [required]
otp-version: 22.2 # Define the OTP version [required]
- name: Check formatting
run: mix format --check-formatted
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}

- name: Cache Dependencies
id: mix-cache
Expand Down
2 changes: 1 addition & 1 deletion config/config.exs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use Mix.Config
import Config

if Mix.env() == :dev do
config :mix_test_watch,
Expand Down
2 changes: 1 addition & 1 deletion test/session_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ defmodule SessionTest do
%{
"event" => "ping"
},
@initial_state()
@initial_state
)

assert_receive {:to_user, %{event: "pong"}}
Expand Down