Skip to content

Commit

Permalink
Strip out Travis CI in favour of Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
whitfin committed Jan 27, 2021
1 parent edf1963 commit e9d0d1b
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 116 deletions.
83 changes: 83 additions & 0 deletions .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
name: CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
name: Elixir ${{ matrix.elixir }} / OTP ${{ matrix.otp }}
runs-on: ubuntu-16.04
strategy:
fail-fast: false
matrix:
otp:
- '21.3'
elixir:
- '1.11'
include:
- elixir: '1.10'
otp: '21.3'
- elixir: '1.9'
otp: '20.3'
- elixir: '1.8'
otp: '20.3'
- elixir: '1.7'
otp: '19.3'
- elixir: '1.6'
otp: '19.3'
- elixir: '1.5'
otp: '18.3'
- elixir: '1.4'
otp: '18.3'
- elixir: '1.3'
otp: '18.3'
- elixir: '1.2'
otp: '18.3'

steps:
- uses: actions/checkout@v2

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

- name: Setup Environment
run: |
epmd -daemon
mix local.hex --force
mix local.rebar --force
mix deps.get
- name: Run Tests
run: mix test --trace

coverage:
name: Coverage Reporting
runs-on: ubuntu-16.04
env:
MIX_ENV: cover
steps:
- uses: actions/checkout@v2

- name: Set up Elixir
uses: erlef/setup-elixir@v1
with:
elixir-version: '1.11'
otp-version: '21.3'

- name: Setup Environment
run: |
epmd -daemon
mix local.hex --force
mix local.rebar --force
mix deps.get
- name: Generate Coverage
run: mix coveralls.github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
115 changes: 0 additions & 115 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
@@ -1,5 +1,5 @@
# Eternal
[![Build Status](https://img.shields.io/travis/whitfin/eternal.svg)](https://travis-ci.org/whitfin/eternal) [![Coverage Status](https://img.shields.io/coveralls/whitfin/eternal.svg)](https://coveralls.io/github/whitfin/eternal) [![Hex.pm Version](https://img.shields.io/hexpm/v/eternal.svg)](https://hex.pm/packages/eternal) [![Documentation](https://img.shields.io/badge/docs-latest-yellowgreen.svg)](https://hexdocs.pm/eternal/)
[![Build Status](https://img.shields.io/github/workflow/status/whitfin/eternal/CI)](https://github.com/whitfin/eternal/actions) [![Coverage Status](https://img.shields.io/coveralls/whitfin/eternal.svg)](https://coveralls.io/github/whitfin/eternal) [![Hex.pm Version](https://img.shields.io/hexpm/v/eternal.svg)](https://hex.pm/packages/eternal) [![Documentation](https://img.shields.io/badge/docs-latest-yellowgreen.svg)](https://hexdocs.pm/eternal/)

Eternal is a simple way to monitor an ETS table to ensure that it never dies. It works by using bouncing GenServers to ensure that both an owner and heir are always available, via the use of scheduled monitoring and message passing. The idea is similar to that of the Immortal library, but taking it further to ensure a more bulletproof solution - and removing the need to have a single process dedicated to owning your ETS table.

Expand Down

0 comments on commit e9d0d1b

Please sign in to comment.