diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..b0fe27d --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,41 @@ +name: CI + +on: + pull_request: + push: + +jobs: + ci: + runs-on: ubuntu-latest + strategy: + matrix: + include: + - java: 14 + scala: 2.13.6 + - java: 8 + scala: 3.0.1 + name: Scala v${{ matrix.scala }} / Java v${{ matrix.java }} + steps: + + - name: Git checkout + uses: actions/checkout@v2 + + - name: Setup Java and Scala + uses: olafurpg/setup-scala@v12 + with: + java-version: adopt@1.${{ matrix.java }} + + - name: Setup Node + uses: actions/setup-node@v2 + with: + node-version: '16' + + - name: Setup Scala.JS + uses: japgolly/setup-scalajs@v1 + + - name: Cache sbt + uses: coursier/cache-action@v6.1 + + - name: Build and test + shell: bash + run: sbt ++${{ matrix.scala }} clean test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 9f82734..0000000 --- a/.travis.yml +++ /dev/null @@ -1,39 +0,0 @@ -language: scala - -scala: - - 2.12.13 - - 2.13.5 - - 3.0.0 - -jdk: - - openjdk8 - -install: - - . $HOME/.nvm/nvm.sh - - nvm install stable - - nvm use stable - - export NODE_PATH="$(npm config get prefix)"/lib/node_modules - - npm install - - npm install jsdom source-map-support - - | - # update this only when sbt-the-bash-script needs to be updated - export SBT_LAUNCHER=1.5.0 - export SBT_OPTS="-Dfile.encoding=UTF-8" - curl -L --silent "https://github.com/sbt/sbt/releases/download/v$SBT_LAUNCHER/sbt-$SBT_LAUNCHER.tgz" > $HOME/sbt.tgz - tar zxf $HOME/sbt.tgz -C $HOME - sudo rm /usr/local/bin/sbt - sudo ln -s $HOME/sbt/bin/sbt /usr/local/bin/sbt - -script: - - sbt ++$TRAVIS_SCALA_VERSION test - -before_cache: - - rm -f $HOME/.ivy2/.sbt.ivy.lock - - find $HOME/.ivy2/cache -name "ivydata-*.properties" -type f -delete - - find $HOME/.sbt -name "*.lock" -type f -delete -cache: - directories: - - $HOME/.coursier - - $HOME/.ivy2/cache - - $HOME/.sbt -