Skip to content

Prepare v2.6.0

Prepare v2.6.0 #12

Workflow file for this run

name: CI
on:
pull_request:
branches: ['*']
push:
branches: ['*']
tags: ['v*']
jobs:
build:
name: jdk-${{ matrix.java }} Build and Tests
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
java: [11, 17, 21]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Scala
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{ matrix.java }}
cache: 'sbt'
- name: Build project
run: sbt codeVerify coverage +test coverageReport coverageAggregate
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: false
publish:
name: Publish
needs: [build]
if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v'))
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Scala
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 11
cache: 'sbt'
- name: Publish artifacts
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
run: sbt ci-release