From aee8bef2b78f4b013092a5162666c905fe2a689b Mon Sep 17 00:00:00 2001 From: Mark Canlas Date: Mon, 5 Apr 2021 12:16:41 -0400 Subject: [PATCH] add github action --- .github/workflows/scala.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/scala.yml diff --git a/.github/workflows/scala.yml b/.github/workflows/scala.yml new file mode 100644 index 0000000..6ee86a4 --- /dev/null +++ b/.github/workflows/scala.yml @@ -0,0 +1,31 @@ +name: Scala CI + +on: + push: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Set up JDK 11 + uses: actions/setup-java@v2 + with: + java-version: '11' + distribution: 'adopt' + + - name: Cache sbt + uses: actions/cache@v2 + with: + path: | + ~/.sbt + ~/.cache/coursier/v1 + key: scala + + - name: Run tests + run: sbt "+scalafixAll --check" +scalafmtCheck "+test"