diff --git a/.github/workflows/scala.yml b/.github/workflows/scala.yml new file mode 100644 index 0000000..76850bb --- /dev/null +++ b/.github/workflows/scala.yml @@ -0,0 +1,34 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +name: Scala CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +permissions: + contents: read + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Set up JDK 11 + uses: actions/setup-java@v4 + with: + java-version: '11' + distribution: 'temurin' + cache: 'sbt' + - uses: sbt/setup-sbt@v1 + - name: Run formatting check + run: sbt scalafmtCheckAll + - name: Run tests + run: sbt +test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 75e27f6..0000000 --- a/.travis.yml +++ /dev/null @@ -1,18 +0,0 @@ -language: scala -scala: - - 2.13.11 -jdk: openjdk11 - -before_install: - - git fetch --tags - -stages: - - name: test - -jobs: - include: - - stage: test - name: run tests - script: - - sbt scalafmtCheckAll - - sbt +test