From e0d03248d6c073434df3615ad6ca444e3d7a21b4 Mon Sep 17 00:00:00 2001 From: Tobias Jonas Date: Fri, 28 Oct 2022 14:15:48 +0200 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) 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 }} + +