Skip to content

New CD pipeline

New CD pipeline #10

Workflow file for this run

name: CI
on:
push:
branches: [ "develop", "release" ]
pull_request:
branches: [ "develop", "release" ]
permissions:
contents: read
env:
JAVA_VERSION: 21
HTRC_NEXUS_DRHTRC_PWD: ${{ secrets.HTRC_NEXUS_DRHTRC_PWD }}
jobs:
ci:
name: Build & test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Java
uses: actions/setup-java@v4
with:
java-version: '${{ env.JAVA_VERSION }}'
distribution: 'temurin'
cache: 'sbt'
- name: Run tests with coverage
run: sbt -mem 4000 coverage "+test" coverageReport
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false