Skip to content

Update sbt-scoverage to 2.0.12 #1738

Update sbt-scoverage to 2.0.12

Update sbt-scoverage to 2.0.12 #1738

Workflow file for this run

# This file was automatically generated by sbt-github-actions using the
# githubWorkflowGenerate task. You should add and commit this file to
# your git repository. It goes without saying that you shouldn't edit
# this file by hand! Instead, if you wish to make changes, you should
# change your sbt build configuration to revise the workflow description
# to meet your needs, then regenerate this file.
name: Continuous Integration
on:
pull_request:
branches: [main]
push:
branches: [main]
permissions:
id-token: write
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
build:
name: Build and Test
strategy:
matrix:
os: [ubuntu-latest]
scala: [2.13.13]
java: [temurin@11]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout current branch (full)
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Java (temurin@11)
if: matrix.java == 'temurin@11'
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 11
cache: sbt
- name: 'Linter: Scalafix checks'
run: sbt '++ ${{ matrix.scala }}' 'scalafixAll --check'
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: 'arn:aws:iam::310017459104:role/aiven-guardian-github-action'
aws-region: us-west-2
role-duration-seconds: 7200
- name: Check that workflows are up to date
run: sbt '++ ${{ matrix.scala }}' githubWorkflowCheck
- name: Build project
env:
PEKKO_CONNECTORS_S3_REGION_PROVIDER: default
PEKKO_CONNECTORS_S3_AWS_CREDENTIALS_PROVIDER: default
run: sbt '++ ${{ matrix.scala }}' clean coverage test
- name: Compile docs
run: sbt '++ ${{ matrix.scala }}' docs/makeSite
- name: Upload coverage data to Coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: Scala ${{ matrix.scala }}
run: sbt '++ ${{ matrix.scala }}' coverageReport coverageAggregate coveralls
- name: Compress target directories
run: tar cf targets.tar target cli-compaction/target compaction-gcs/target backup-s3/target compaction-s3/target docs/target cli-backup/target core-restore/target restore-s3/target core-gcs/target core-compaction/target core-s3/target core-backup/target core-cli/target cli-restore/target core/target restore-gcs/target backup-gcs/target project/target
- name: Upload target directories
uses: actions/upload-artifact@v4
with:
name: target-${{ matrix.os }}-${{ matrix.scala }}-${{ matrix.java }}
path: targets.tar
publish:
name: Publish Artifacts
needs: [build]
if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/main')
strategy:
matrix:
os: [ubuntu-latest]
scala: [2.13.13]
java: [temurin@11]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout current branch (full)
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Java (temurin@11)
if: matrix.java == 'temurin@11'
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 11
cache: sbt
- name: Download target directories (2.13.13)
uses: actions/download-artifact@v4
with:
name: target-${{ matrix.os }}-2.13.13-${{ matrix.java }}
- name: Inflate target directories (2.13.13)
run: |
tar xf targets.tar
rm targets.tar
- run: |
git config --global user.name "$(git --no-pager log --format=format:'%an' -n 1)"
git config --global user.email "$(git --no-pager log --format=format:'%ae' -n 1)"
- uses: webfactory/ssh-agent@v0.5.4
with:
ssh-private-key: ${{ secrets.GH_PAGES_SSH_PRIVATE_KEY }}
- run: sbt docs/ghpagesPushSite