Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to GitHub Actions for testing PRs #44

Merged
merged 2 commits into from
Nov 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: CI

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
main:
name: Build and test
strategy:
fail-fast: false
matrix:
scala:
- 2.11.12
- 2.12.12
- 2.13.0
- 2.13.1
- 2.13.2
- 2.13.3
- 2.13.4
java:
- 1.8
- 1.11
runs-on: ubuntu-latest
steps:
- name: Checkout current branch
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup Java and Scala
uses: olafurpg/setup-scala@v10
with:
java-version: adopt@${{ matrix.java }}

- name: Cache sbt
uses: actions/cache@v2
with:
path: |
~/.sbt
~/.cache/coursier/v1
key: sbt-cache-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}

- name: Test
run: |
sbt ++${{ matrix.scala }} test
16 changes: 0 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,7 @@
language: scala
scala:
- 2.11.12
- 2.12.8
- 2.12.9
- 2.12.10
- 2.12.11
- 2.12.12
- 2.13.0
- 2.13.1
- 2.13.2
- 2.13.3
- 2.13.4
jdk:
- openjdk8
- openjdk12
before_install:
- git fetch --tags
stages:
- name: test
- name: release
if: ((branch = master AND type = push) OR (tag IS present)) AND NOT fork
- name: update-readme
Expand Down
11 changes: 11 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
import sbt.Keys._
import sbt._

scalaVersion := "2.13.4"
crossScalaVersions := List(
"2.11.12",
"2.12.12",
"2.13.0",
"2.13.1",
"2.13.2",
"2.13.3",
"2.13.4",
)

crossVersion := CrossVersion.full
scalacOptions ++= Seq("-deprecation")
libraryDependencies ++= Seq(
Expand Down
1 change: 0 additions & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "1.3.1")
addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.3")
addSbtPlugin("com.dwijnand" % "sbt-travisci" % "1.2.0")