Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Update sbt-bloop to 1.5.15 #387

Update sbt-bloop to 1.5.15

Update sbt-bloop to 1.5.15 #387

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- 'master'
- 'series/2.x'
release:
types:
- published
jobs:
lint:
runs-on: ubuntu-22.04
timeout-minutes: 30
strategy:
fail-fast: false
steps:
- name: Checkout current branch
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0
- name: Setup Scala and Java
uses: olafurpg/setup-scala@v14
- name: Cache scala dependencies
uses: coursier/cache-action@v6
- name: Lint code
run: ./sbt check
test:
runs-on: ubuntu-22.04
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
java: ['[email protected]', '[email protected]']
scala: ['2.11.12', '2.12.18', '2.13.11']
steps:
- name: Checkout current branch
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0
- name: Setup Scala and Java
uses: olafurpg/setup-scala@v14
with:
java-version: ${{ matrix.java }}
- name: Cache scala dependencies
uses: coursier/cache-action@v6
- name: Run tests
run: ./sbt ++${{ matrix.scala }}! test
ci:
runs-on: ubuntu-22.04
needs: [lint, test]
steps:
- name: Aggregate outcomes
run: echo "build succeeded"
publish:
runs-on: ubuntu-22.04
timeout-minutes: 30
needs: [ci]
if: github.event_name != 'pull_request'
steps:
- name: Checkout current branch
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0
- name: Setup Scala and Java
uses: olafurpg/setup-scala@v14
- name: Cache scala dependencies
uses: coursier/cache-action@v6
- name: Release artifacts
run:
./sbt ci-release
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}