From 9f8aa16f72e0c4f87a272a73269d29e81464e035 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Manciot?= Date: Thu, 15 Jun 2023 17:12:44 +0200 Subject: [PATCH] update release workflow --- .github/workflows/release.yml | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 756fabb..4fa6e4e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,5 +35,28 @@ jobs: java-version: '8' distribution: 'temurin' cache: 'sbt' - - name: Run tests & publish - run: sbt test publish + - name: Run tests & Coverage Report + run: sbt coverage test coverageReport + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v3 + with: + files: common/target/scala-2.12/coverage-report/cobertura.xml,core/target/scala-2.12/coverage-report/cobertura.xml,teskit/target/scala-2.12/coverage-report/cobertura.xml + flags: unittests + fail_ci_if_error: true + verbose: true + - name: Publish + run: sbt publish + + lint: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Set up JDK 8 + uses: actions/setup-java@v3 + with: + java-version: '8' + distribution: 'temurin' + # cache: 'sbt' + - name: Formatting + run: sbt scalafmtSbtCheck scalafmtCheck test:scalafmtCheck \ No newline at end of file