Skip to content

Commit 8cd89aa

Browse files
committedJan 12, 2021
add docker-compose with support for redis and memcached
1 parent 4115abf commit 8cd89aa

File tree

3 files changed

+22
-9
lines changed

3 files changed

+22
-9
lines changed
 

‎.github/workflows/ci.yml

+4-6
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,13 @@ jobs:
5656
- name: Check that workflows are up to date
5757
run: sbt ++${{ matrix.scala }} githubWorkflowCheck
5858

59-
- name: Check formatting
59+
- name: Check Formatting
6060
run: sbt ++${{ matrix.scala }} scalafmtCheckAll
6161

62-
- name: Setup
63-
run: |
64-
sudo make travis-install
65-
sudo make travis-run
62+
- name: Setup Dependencies
63+
run: docker-compose up -d
6664

67-
- name: Run tests
65+
- name: Run Tests
6866
run: sbt ++${{ matrix.scala }} test
6967

7068
- name: Compile Docs

‎build.sbt

+3-3
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,9 @@ ThisBuild / scalaVersion := Scala213
169169
ThisBuild / crossScalaVersions := Seq(Scala213, Scala212)
170170
ThisBuild / githubWorkflowJavaVersions := Seq(Jdk11)
171171
ThisBuild / githubWorkflowBuild := Seq(
172-
WorkflowStep.Sbt(List("scalafmtCheckAll"), name = Some("Check formatting")),
173-
WorkflowStep.Run(List("sudo make travis-install", "sudo make travis-run"), name = Some("Setup")),
174-
WorkflowStep.Sbt(List("test"), name = Some("Run tests")),
172+
WorkflowStep.Sbt(List("scalafmtCheckAll"), name = Some("Check Formatting")),
173+
WorkflowStep.Run(List("docker-compose up -d"), name = Some("Setup Dependencies")),
174+
WorkflowStep.Sbt(List("test"), name = Some("Run Tests")),
175175
WorkflowStep.Sbt(List("docs/mdoc"), name = Some("Compile Docs"))
176176
)
177177
//sbt-ci-release settings

‎docker-compose.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
version: '3.8'
2+
services:
3+
redis-cluster:
4+
image: grokzen/redis-cluster:latest
5+
ports:
6+
- '7000-7005:7000-7005'
7+
- '6379:7006'
8+
- '6380:7007'
9+
environment:
10+
IP: 0.0.0.0
11+
STANDALONE: 'true'
12+
memcached:
13+
image: memcached:latest
14+
ports:
15+
- '11211:11211'

0 commit comments

Comments
 (0)
Please sign in to comment.