diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..3f1ac54 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +name: CI +on: + push: + branches: + - '*' + tags: + - 'v*' + pull_request: + branches: + - master + +jobs: + test: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + scala-version: [2.11.11, 2.12.4] + steps: + - uses: actions/checkout@v4 + - name: Coursier cache + uses: coursier/cache-action@v6 + - uses: coursier/setup-action@v1 + with: + jvm: adopt:8 + apps: sbt scala + - name: Test + run: sbt ++${{ matrix.scala-version }} test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 9f8eb60..0000000 --- a/.travis.yml +++ /dev/null @@ -1,23 +0,0 @@ -# See http://www.scala-sbt.org/0.13/docs/Travis-CI-with-sbt.html -language: scala -jdk: oraclejdk8 -scala: - - 2.11.11 - - 2.12.4 - -# Use container-based infrastructure -sudo: false - -# These directories are cached to S3 at the end of the build -cache: - directories: - - $HOME/.ivy2/cache - - $HOME/.sbt/boot/ - -script: - # Your normal script - - sbt ++$TRAVIS_SCALA_VERSION -J-XX:ReservedCodeCacheSize=256M test - - # Tricks to avoid unnecessary cache updates - - find $HOME/.sbt -name "*.lock" | xargs rm - - find $HOME/.ivy2 -name "ivydata-*.properties" | xargs rm diff --git a/README.md b/README.md index 8b8ef71..2b28fd0 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Build Status](https://travis-ci.org/tim-group/iterata.svg)](https://travis-ci.org/tim-group/iterata) +[![CI](https://github.com/tim-group/iterata/actions/workflows/ci.yml/badge.svg)](https://github.com/tim-group/iterata/actions/workflows/ci.yml) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.timgroup/iterata_2.11/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.timgroup/iterata_2.11) # iterata