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

github actions #186

Merged
merged 1 commit into from
Jul 11, 2024
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
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/actions/workflows/ci.yml/badge.svg)](https://github.com/phoenixframework/phoenix_pubsub/actions/workflows/ci.yml)

## 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
Loading