diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ce6b719..1a31ddd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,22 +1,25 @@ -name: Scala Build and Test CI +name: Run Tests on: push jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: run compile - run: sbt compile test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: run tests - run: sbt test - lint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Formatting - run: sbt scalafmtSbtCheck scalafmtCheck + - uses: actions/checkout@v2 + - name: Cache SBT ivy cache + uses: actions/cache@v1 + with: + path: ~/.ivy2/cache + key: ${{ runner.os }}-sbt-ivy-cache-${{ hashFiles('**/build.sbt') }} + - name: Cache SBT + uses: actions/cache@v1 + with: + path: ~/.sbt + key: ${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt') }} + - name: Run tests + run: sbt test + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + GITHUB_TOKEN: ${{ secrets.PUBLIC_GITHUB_TOKEN }} + +