Skip to content

fs2-rabbit backend

fs2-rabbit backend #29

Workflow file for this run

name: Build and Publish
on:
push:
branches:
- master
tags:
- v*.*
pull_request:
branches:
- master
jobs:
build:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Cache SBT
uses: actions/cache@v3
with:
path: |
~/.ivy2/cache
~/.sbt
key: ${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt') }}
- name: Run the docker-compose integration test dependencies
run: docker-compose up -d
- name: Run tests
run: sbt +test +it/test
- name: Import GPG key
if: ${{ startsWith(github.ref, 'refs/tags/') }}
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_KEY_PRIVATE }}
passphrase: ${{ secrets.GPG_KEY_PASSPHRASE }}
- name: Publish
if: ${{ startsWith(github.ref, 'refs/tags/') }}
run: sbt +publishSigned
env:
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
SONATYPE_PASS: ${{ secrets.SONATYPE_PASS }}
GPG_KEY_PASSPHRASE: ${{ secrets.GPG_KEY_PASSPHRASE }}