Skip to content

Commit 54ec94a

Browse files
authored
Merge pull request #10 from scripbox/task/add-github-actions
Migrate to github actions
2 parents a7f9937 + 972603f commit 54ec94a

File tree

3 files changed

+46
-16
lines changed

3 files changed

+46
-16
lines changed

.circleci/config.yml

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

.github/workflows/main.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
format:
7+
name: Format
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v1
11+
- name: Install OTP and Elixir
12+
uses: actions/[email protected]
13+
with:
14+
otp-version: 22.1
15+
elixir-version: 1.6.6
16+
- name: Install dependencies
17+
run: mix deps.get --only test
18+
- name: Check mix format
19+
run: mix format --check-formatted
20+
21+
test:
22+
name: Test
23+
runs-on: ubuntu-latest
24+
services:
25+
redis:
26+
image: redis:5.0
27+
ports:
28+
- 6379:6379
29+
options: --entrypoint redis-server
30+
steps:
31+
- uses: actions/checkout@v1
32+
- name: Install OTP and Elixir
33+
uses: actions/[email protected]
34+
with:
35+
otp-version: 22.1
36+
elixir-version: 1.6.6
37+
- name: Install dependencies
38+
run: |
39+
mix deps.get --only test
40+
mix deps.compile
41+
- name: Run tests
42+
run: mix test
43+
env:
44+
REDIS_HOST: redis
45+
REDIS_PORT: ${{ job.services.redis.ports[6379] }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Flume
22

3-
[![CircleCI](https://circleci.com/gh/scripbox/flume.svg?style=svg)](https://circleci.com/gh/scripbox/flume)
3+
![Test](https://github.com/scripbox/flume/workflows/CI/badge.svg?branch=master&event=push)
44

55
Flume is a job processing system backed by [GenStage](https://github.com/elixir-lang/gen_stage) & [Redis](https://redis.io/)
66

0 commit comments

Comments
 (0)