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