diff --git a/.github/workflows/sbt-coverage.yml b/.github/workflows/sbt-coverage.yml new file mode 100644 index 0000000..3161306 --- /dev/null +++ b/.github/workflows/sbt-coverage.yml @@ -0,0 +1,23 @@ +name: CI + +on: + push: + branches: + - master + - main + pull_request: + +jobs: + coverage: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: olafurpg/setup-scala@v13 + - name: branch-names + id: branch-name + uses: tj-actions/branch-names@v2.2 + - run: sbt coverage +test coverageReport + - run: sbt coveralls + env: + COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} + CI_BRANCH: ${{ steps.branch-name.outputs.current_branch }}