Skip to content

Commit

Permalink
Move from CircleCI to Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
derekkraan committed Sep 29, 2023
1 parent 531f3e8 commit f61e5ec
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 24 deletions.
21 changes: 0 additions & 21 deletions .circleci/config.yml

This file was deleted.

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

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/local_cluster_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ defmodule LocalClusterTest do
nodes = rpc(target, Node, :list, [])

Logger.info(
"found #{inspect(pid)} on node: #{inspect(node(pid))}, target #{inspect(node)}, nodes: #{inspect(nodes)}"
"found #{inspect(pid)} on node: #{inspect(node(pid))}, target #{inspect(node())}, nodes: #{inspect(nodes)}"
)

Process.sleep(200)
Expand Down

0 comments on commit f61e5ec

Please sign in to comment.