Skip to content

Commit

Permalink
Merge pull request #264 from derekkraan/github-actions
Browse files Browse the repository at this point in the history
Move from CircleCI to Github Actions
  • Loading branch information
derekkraan authored Oct 23, 2023
2 parents 9eaa45e + 7324e3b commit 2d06064
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 24 deletions.
21 changes: 0 additions & 21 deletions .circleci/config.yml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
on: push

env:
ELIXIR_ERL_OPTIONS: -kernel prevent_overlapping_partitions false

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
elixir-version: [1.15, 1.14, 1.13]
otp-version: [26, 25, 24]
exclude:
- elixir-version: 1.13
otp-version: 26

name: Tests
steps:
- uses: actions/checkout@v3
- uses: erlef/setup-beam@v1
with:
elixir-version: ${{ matrix.elixir-version }}
otp-version: ${{ matrix.otp-version }}

- run: mix deps.get

- run: mix compile --warnings-as-errors
if: matrix.elixir-version == 1.15 && matrix.otp-version == 26

- run: mix format --check-formatted
if: matrix.elixir-version == 1.15 && matrix.otp-version == 26

- run: mix test
3 changes: 2 additions & 1 deletion lib/horde/processes_supervisor.ex
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,8 @@ defmodule Horde.ProcessesSupervisor do
end

def handle_info(msg, state) do
:error_logger.error_msg('Horde.ProcessesSupervisor received unexpected message: ~p~n', [msg])
:error_logger.error_msg(~c"Horde.ProcessesSupervisor received unexpected message: ~p~n", [msg])

{:noreply, state}
end

Expand Down
2 changes: 1 addition & 1 deletion lib/horde/supervisor_telemetry_poller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ defmodule Horde.DynamicSupervisorTelemetryPoller do
})
catch
:exit, reason ->
Logger.warn("""
Logger.warning("""
Exit while fetching metrics from #{inspect(supervisor_impl_name)}.
Skip poll action. Reason: #{inspect(reason)}.
""")
Expand Down
2 changes: 1 addition & 1 deletion test/network_partition_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ defmodule NetworkPartitionTest do
use ExUnit.Case

setup do
nodes = LocalCluster.start_nodes("cluster-#{:rand.uniform(9_999_999)}", 2)
nodes = LocalCluster.start_nodes("cluster#{:erlang.unique_integer()}", 2)

for n <- nodes do
:erpc.call(n, Application, :ensure_all_started, [:test_app])
Expand Down

0 comments on commit 2d06064

Please sign in to comment.