Skip to content

Commit

Permalink
Merge pull request #19 from scripbox/task/move_ci_to_github_actions
Browse files Browse the repository at this point in the history
Add github workflow to run tests
  • Loading branch information
vasuadari authored Jul 12, 2020
2 parents e36e1e6 + 3de9056 commit f350125
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
36 changes: 36 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI

on: [push, pull_request]

jobs:
format:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install OTP and Elixir
uses: actions/[email protected]
with:
otp-version: 22.1
elixir-version: 1.6.6
- name: Install dependencies
run: mix deps.get --only test
- name: Check mix format
run: mix format --check-formatted

test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install OTP and Elixir
uses: actions/[email protected]
with:
otp-version: 22.1
elixir-version: 1.6.6
- name: Install dependencies
run: |
mix deps.get --only test
mix deps.compile
- name: Run tests
run: mix test
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SnowplowTracker

[![codecov](https://codecov.io/gh/scripbox/snowplow-elixir-tracker/branch/master/graph/badge.svg)](https://codecov.io/gh/scripbox/snowplow-elixir-tracker) ![Hex.pm](https://img.shields.io/hexpm/dt/snowplow_tracker.svg) ![Travis](https://img.shields.io/travis/scripbox/snowplow-elixir-tracker.svg)
![CI](https://github.com/scripbox/snowplow-elixir-tracker/workflows/CI/badge.svg?branch=master&event=push) ![Hex.pm](https://img.shields.io/hexpm/dt/snowplow_tracker.svg) ![Travis](https://img.shields.io/travis/scripbox/snowplow-elixir-tracker.svg)


Snowplow event tracker for elixir. Add analytics to your elixir/phoenix apps.
Expand Down

0 comments on commit f350125

Please sign in to comment.