Skip to content

Commit

Permalink
github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
SteffenDE committed Jul 11, 2024
1 parent b2ebdc0 commit 4e50e42
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 15 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Tests

on:
push:
pull_request:
branches:
- main

env:
ACTIONS_RUNNER_FORCED_INTERNAL_NODE_VERSION: node16
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true

jobs:
tests:
name: Run tests (${{ matrix.image }})

strategy:
fail-fast: false
matrix:
include:
- image: 1.7.4-erlang-21.3.8.24-debian-stretch-20210902-slim
- image: 1.17.2-erlang-27.0.1-debian-bookworm-20240701-slim

runs-on: ubuntu-latest
container:
image: hexpm/elixir:${{ matrix.image }}

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Hex and Rebar setup
run: |
mix local.hex --force
mix local.rebar --force
- name: Restore deps and _build cache
uses: actions/cache@v2
with:
path: |
deps
_build
key: deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }}
restore-keys: |
deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}
- name: Install dependencies
run: mix deps.get --only test

- name: Run tests
run: |
epmd -daemon
mix test
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> Distributed PubSub and Presence platform for the Phoenix Framework
[![Build Status](https://api.travis-ci.org/phoenixframework/phoenix_pubsub.svg)](https://travis-ci.org/phoenixframework/phoenix_pubsub)
[![Build Status](https://github.com/phoenixframework/phoenix_pubsub/workflows/CI/badge.svg)](https://github.com/phoenixframework/phoenix_pubsub/actions?query=workflow%3A%22CI%22)

## Usage

Expand Down
2 changes: 1 addition & 1 deletion test/phoenix/tracker/clock_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ defmodule Phoenix.TrackerClockTest do
test "replicas" do
assert Clock.replicas(%{}) == []
assert Clock.replicas(%{a: 1}) == [:a]
assert Clock.replicas(%{a: 1, b: 2}) == [:a, :b]
assert Clock.replicas(%{a: 1, b: 2}) |> Enum.sort() == [:a, :b]
end
end

0 comments on commit 4e50e42

Please sign in to comment.