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 01287da
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 14 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Tests

on:
push:
pull_request:
branches:
- main

jobs:
tests:
name: Run tests (Elixir ${{matrix.elixir}}, OTP ${{matrix.otp}}), OS ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
include:
- elixir: "1.6.6"
otp: "19.0"
os: ubuntu-18.04
- elixir: "1.17"
otp: "27.0"
os: ubuntu-24.04

runs-on: ${{ matrix.os }}

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

- name: Set up Elixir
uses: erlef/setup-elixir@v1
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}

- name: Restore deps and _build cache
uses: actions/cache@v4
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

0 comments on commit 01287da

Please sign in to comment.