Skip to content

Configure automated ci-release pipeline #33

Configure automated ci-release pipeline

Configure automated ci-release pipeline #33

name: Tests & Coverage
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
tests-and-coverage:
name: Tests & Coverage
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
# we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves
fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: 'sbt'
- name: Run tests and generate coverage report
run: |-
cp .jvmopts-ci .jvmopts
sbt coverage test coverageReport && bash <(curl -s https://codecov.io/bash)