Skip to content

Commit 4d34905

Browse files
authored
Apply GitHub Actions (#16)
Apply github actions
1 parent 0591c71 commit 4d34905

File tree

3 files changed

+36
-9
lines changed

3 files changed

+36
-9
lines changed

.github/workflows/tests.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: tests
2+
3+
on: push
4+
5+
jobs:
6+
tests:
7+
name: Run Tests
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
otp: ['19.3']
12+
elixir: ['1.5', '1.7']
13+
env:
14+
MIX_ENV: test
15+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16+
steps:
17+
- uses: actions/checkout@v2
18+
- uses: actions/setup-elixir@v1
19+
with:
20+
otp-version: ${{ matrix.otp }}
21+
elixir-version: ${{ matrix.elixir }}
22+
- uses: actions/cache@v1
23+
with:
24+
path: deps
25+
key: ${{ runner.os }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
26+
restore-keys: |
27+
${{ runner.os }}-mix-
28+
- run: mix deps.get
29+
- run: mix test --seed 0 # disable randomization

.travis.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
# ExProf [![Build Status](https://secure.travis-ci.org/parroty/exprof.png?branch=master "Build Status")](http://travis-ci.org/parroty/exprof) [![hex.pm version](https://img.shields.io/hexpm/v/exprof.svg)](https://hex.pm/packages/exprof) [![hex.pm downloads](https://img.shields.io/hexpm/dt/exprof.svg)](https://hex.pm/packages/exprof)
1+
ExProf
2+
============
3+
4+
[![Build Status](https://github.com/parroty/excoveralls/workflows/tests/badge.svg)](https://github.com/parroty/exprof/actions)
5+
[![hex.pm version](https://img.shields.io/hexpm/v/exprof.svg)](https://hex.pm/packages/exprof)
6+
[![hex.pm downloads](https://img.shields.io/hexpm/dt/exprof.svg)](https://hex.pm/packages/exprof)
7+
28
A simple code profiler for Elixir using eprof.
39

410
It provides a simple macro as a wrapper for Erlang's <a href="http://www.erlang.org/doc/man/eprof.html" target="_blank">:eprof</a> profiler.

0 commit comments

Comments
 (0)