Merge pull request #568 from scala-steward/update/aws-java-sdk-core-1… #1191
This file contains 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 }} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
scala: ['2.12', '2.13'] | |
include: | |
- scala: '2.12' | |
scala-version: 2.12.18 | |
- scala: '2.13' | |
scala-version: 2.13.12 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: adopt | |
java-version: 8 | |
- name: Cache sbt | |
uses: coursier/cache-action@v6 | |
- name: Compile and check format | |
run: >- | |
sbt ++${{ matrix.scala-version }} scalafmtSbt Test/compile && | |
git diff --exit-code | |
- name: Run tests | |
run: sbt -Dsbt.color=always ++${{ matrix.scala-version }} test | |
- name: Check mdoc for uncommitted changes | |
run: sbt -Dsbt.color=always "docs/mdoc --check" | |
validate-changelog: | |
timeout-minutes: 5 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18.18.0' | |
- name: Validate Changelog formatting | |
run: npx zx --install .github/workflows/scripts/validate_changelog.mjs |