Skip to content

Commit c17a658

Browse files
committed
Switch to GitHub workflows for CI
1 parent 4329122 commit c17a658

File tree

3 files changed

+48
-1
lines changed

3 files changed

+48
-1
lines changed

.github/docker-compose.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: "3.9"
2+
3+
services:
4+
test:
5+
image: openjdk:8-jdk
6+
working_dir: /usr/local/src
7+
command: ./sbt ++$SCALA_VERSION test
8+
environment:
9+
- CI
10+
- SCALA_VERSION
11+
volumes:
12+
- ./../:/usr/local/src
13+
network_mode: host

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches: ['**']
6+
push:
7+
branches: ['master']
8+
tags: [v*]
9+
# release:
10+
# types: [published]
11+
12+
jobs:
13+
build:
14+
name: Build and Test
15+
strategy:
16+
matrix:
17+
scala: ["2.12.7"]
18+
runs-on: ubuntu-latest
19+
20+
env:
21+
SCALA_VERSION: ${{ matrix.scala }}
22+
23+
steps:
24+
- uses: actions/checkout@v2
25+
with:
26+
fetch-depth: 0
27+
28+
- uses: coursier/cache-action@v6
29+
# - uses: olafurpg/setup-scala@v13
30+
# with:
31+
# java-version: adopt@1.8
32+
33+
- name: run tests
34+
run: docker compose -f .github/docker-compose.yml up test --abort-on-container-exit --exit-code-from test

project/Version.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ object Version {
22
val awscala = "0.8.1"
33
val geotrellis = "3.7.0-SNAPSHOT"
44
val scala2_11 = "2.11.12"
5-
val scala2_12 = "2.12.12"
5+
val scala2_12 = "2.12.7"
66
val geomesa = "3.2.2"
77
val decline = "0.6.1"
88
val cats = "1.6.1"

0 commit comments

Comments
 (0)