Update scassandra to 5.6.0 (#881) #927
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: | |
| branches: [ master ] | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| scala: | |
| - 2.13.18 | |
| - 3.3.7 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: coursier/cache-action@v6 | |
| - name: Clear SBT compiler bridge cache # Gets corrupted often in GH actions | |
| run: rm -rf ~/.sbt/boot/scala-*/org.scala-sbt/sbt/*/org.scala-sbt-compiler-bridge* | |
| - name: setup Java 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17' | |
| distribution: 'oracle' | |
| cache: 'sbt' | |
| - name: setup SBT | |
| uses: sbt/setup-sbt@v1 | |
| - name: Check formatting | |
| run: sbt scalafmtCheckAll | |
| - name: Run tests ${{ matrix.scala }} | |
| if: success() | |
| run: sbt clean coverage "++${{ matrix.scala }} test" docs/mdoc "++${{ matrix.scala }} versionPolicyCheck" | |
| - name: Check Scaladoc ${{ matrix.scala }} # Scaladoc is only generated by `+publish` at release time; validate it here so broken links/refs fail the PR instead of slipping to master | |
| if: success() | |
| run: sbt "++${{ matrix.scala }} Compile/doc" | |
| - name: Report test coverage | |
| if: success() && github.repository == 'evolution-gaming/kafka-flow' | |
| env: | |
| COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | |
| run: sbt "++${{ matrix.scala }} coverageReport" coverageAggregate coveralls | |
| - name: Publish documentation / Setup Node | |
| if: success() | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| cache: 'yarn' | |
| cache-dependency-path: website/yarn.lock | |
| - name: Publish documentation / Install dependencies | |
| if: success() | |
| working-directory: ./website | |
| run: yarn install --frozen-lockfile | |
| - name: Publish documentation / Build site | |
| if: success() | |
| working-directory: ./website | |
| run: yarn build | |
| - name: Publish documentation / Deploy | |
| if: success() && github.ref == 'refs/heads/master' && github.repository == 'evolution-gaming/kafka-flow' | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./website/build | |
| - name: Slack Notification | |
| uses: homoluctus/slatify@master | |
| if: failure() && github.ref == 'refs/heads/master' && github.repository == 'evolution-gaming/kafka-flow' | |
| with: | |
| type: ${{ job.status }} | |
| job_name: Build | |
| url: ${{ secrets.SLACK_WEBHOOK }} |