Skip to content

Commit

Permalink
Merge pull request #299 from profunktor/feature/gh-actions
Browse files Browse the repository at this point in the history
GH actions as CI build
  • Loading branch information
gvolpe authored Dec 27, 2019
2 parents 3ab551b + 2c9dea7 commit 5dda80f
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 48 deletions.
45 changes: 0 additions & 45 deletions .circleci/config.yml

This file was deleted.

21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Build

on:
push:
branches:
- master
pull_request:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: olafurpg/setup-scala@v5
- name: Starting up RabbitMQ
run: docker-compose up -d
- name: Tests
run: sbt -J-Xms4G -J-Xmx4G buildFs2Rabbit
- name: Shutting down RabbitMQ
run: docker-compose down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
fs2-rabbit
==========

[![CircleCI](https://circleci.com/gh/profunktor/fs2-rabbit.svg?style=svg)](https://circleci.com/gh/profunktor/fs2-rabbit)
![CI Status](https://github.com/profunktor/fs2-rabbit/workflows/Build/badge.svg)
[![Gitter Chat](https://badges.gitter.im/profunktor-dev/fs2-rabbit.svg)](https://gitter.im/profunktor-dev/fs2-rabbit)
[![Maven Central](https://img.shields.io/maven-central/v/dev.profunktor/fs2-rabbit_2.12.svg)](http://search.maven.org/#search%7Cga%7C1%7Cfs2-rabbit) <a href="https://typelevel.org/cats/"><img src="https://typelevel.org/cats/img/cats-badge.svg" height="40px" align="right" alt="Cats friendly" /></a>
[![MergifyStatus](https://img.shields.io/endpoint.svg?url=https://gh.mergify.io/badges/profunktor/fs2-rabbit&style=flat)](https://mergify.io)
Expand Down Expand Up @@ -42,10 +42,10 @@ Check the [official guide](https://fs2-rabbit.profunktor.dev/guide.html) for upd

## Running tests locally

Start a `RabbitMQ` instance using `docker` (recommended):
Start a `RabbitMQ` instance using `docker-compose` (recommended):

```bash
> docker run -p 5672:5672 rabbitmq:alpine
> docker-compose up
> sbt +test
```

Expand Down
7 changes: 7 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
RabbitMQ:
restart: always
image: rabbitmq:alpine
ports:
- "5672:5672"
environment:
- DEBUG=false

0 comments on commit 5dda80f

Please sign in to comment.