From fab305848795c71fc3224dfff6abfffc7554d439 Mon Sep 17 00:00:00 2001 From: Eduardo Trevisani <11429718+dutrevis@users.noreply.github.com> Date: Thu, 23 May 2024 12:04:42 -0300 Subject: [PATCH] chore: Added test, lint and dependency-graph CI actions --- .github/workflows/scala.yml | 43 +++++++++++++++++++++++++++++++++++++ 1 file changed, 43 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..6a9ef2c --- /dev/null +++ b/.github/workflows/scala.yml @@ -0,0 +1,43 @@ +name: Scala CI + +on: + push: + branches: + - main + - development + pull_request: + branches: + - main + - development + +permissions: + contents: read + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Run tests + run: sbt coverageOn coverage test + - name: Coverage Report + run: sbt coverageReport + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: true + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Formatting + run: sbt scalafmtSbtCheck scalafmtCheck test:scalafmtCheck + dependency-graph: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Update Dependency Graph + uses: scalacenter/sbt-dependency-submission@v3 + permissions: + contents: write