Fix 0.25.2 changelog #2224
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request] | |
env: | |
CI: true # disables SBT super shell which has problems with CI environments | |
jobs: | |
build: | |
name: Scala ${{ matrix.scala }} (Java ${{ matrix.java }}) | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
scala: ['2.13', '3.3'] | |
java: ['11', '17', '21'] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup up JDK | |
id: setup-java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: adopt | |
java-version: ${{ matrix.java }} | |
cache: sbt | |
- name: Setup sbt | |
uses: sbt/setup-sbt@v1 | |
- name: Update dependencies | |
if: steps.setup-java.outputs.cache-hit == 'false' | |
run: sbt +update | |
- name: Compile and check format | |
run: >- | |
sbt "++${{ matrix.scala }} Test/compile" scalafmtSbt && | |
git diff --exit-code | |
- name: Run tests | |
run: sbt -Dsbt.color=always "++${{ matrix.scala }} test" | |
- name: Check mdoc for uncommitted changes | |
run: sbt -Dsbt.color=always "docs/mdoc --check" | |
- name: Compile API documentation | |
run: sbt -Dsbt.color=always "++${{ matrix.scala }} doc" | |
validate-changelog: | |
timeout-minutes: 5 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 'lts/*' | |
- name: Validate Changelog formatting | |
run: npx zx --install .github/workflows/scripts/validate_changelog.mjs |