Skip to content

Commit

Permalink
Migrate from Travis to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
whitfin committed Aug 30, 2023
1 parent a5aa505 commit 08a249e
Show file tree
Hide file tree
Showing 4 changed files with 86 additions and 73 deletions.
84 changes: 84 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
name: CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
name: Elixir ${{ matrix.elixir }}
runs-on: ubuntu-latest
container:
image: elixir:${{ matrix.elixir }}
strategy:
fail-fast: false
matrix:
elixir:
- '1.14'
- '1.13'
- '1.12'
- '1.11'
- '1.10'
- '1.9'
- '1.8'
- '1.7'
- '1.6'
- '1.5'

steps:
- uses: actions/checkout@v2

- 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
runs-on: ubuntu-latest
container:
image: elixir:1.14
env:
MIX_ENV: cover
steps:
- uses: actions/checkout@v2

- 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 }}

lint:
name: Linting
runs-on: ubuntu-latest
container:
image: elixir:1.14
steps:
- uses: actions/checkout@v2

- name: Setup Environment
run: |
epmd -daemon
mix local.hex --force
mix local.rebar --force
mix deps.get
- name: Validate Formatting
run: mix format --check-formatted

- name: Validate Linting
run: mix credo --all --format=oneline
42 changes: 0 additions & 42 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Jumper
[![Coverage Status](https://img.shields.io/coveralls/whitfin/jumper.svg)](https://coveralls.io/github/whitfin/jumper) [![Unix Build Status](https://img.shields.io/travis/whitfin/jumper.svg?label=unix)](https://travis-ci.org/whitfin/jumper) [![Windows Build Status](https://img.shields.io/appveyor/ci/whitfin/jumper.svg?label=win)](https://ci.appveyor.com/project/whitfin/jumper) [![Hex.pm Version](https://img.shields.io/hexpm/v/jumper.svg)](https://hex.pm/packages/jumper) [![Documentation](https://img.shields.io/badge/docs-latest-blue.svg)](https://hexdocs.pm/jumper/)
[![Build Status](https://img.shields.io/github/actions/workflow/status/whitfin/jumper/ci.yml?branch=main)](https://github.com/whitfin/jumper/actions) [![Coverage Status](https://img.shields.io/coveralls/whitfin/jumper.svg)](https://coveralls.io/github/whitfin/jumper) [![Hex.pm Version](https://img.shields.io/hexpm/v/jumper.svg)](https://hex.pm/packages/jumper) [![Documentation](https://img.shields.io/badge/docs-latest-blue.svg)](https://hexdocs.pm/jumper/)

### Installation

Expand Down Expand Up @@ -41,7 +41,7 @@ Typical results are a microsecond or two, based on the number of buckets you're

If you feel something can be improved, or have any questions about certain behaviours or pieces of implementation, please feel free to file an issue. Proposed changes should be taken to issues before any PRs to avoid wasting time on code which might not be merged upstream.

If you *do* make changes to the codebase, please make sure you test your changes thoroughly, and include any unit tests alongside new or changed behaviours. Cachex currently uses the excellent [excoveralls](https://github.com/parroty/excoveralls) to track code coverage.
If you *do* make changes to the codebase, please make sure you test your changes thoroughly, and include any unit tests alongside new or changed behaviours. jumper currently uses the excellent [excoveralls](https://github.com/parroty/excoveralls) to track code coverage.

```bash
$ mix test
Expand Down
29 changes: 0 additions & 29 deletions appveyor.yml

This file was deleted.

0 comments on commit 08a249e

Please sign in to comment.