Add scalafmt workflow #1474
Workflow file for this run
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: Build | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: coursier/setup-action@v1 | |
- name: Starting up RabbitMQ | |
run: docker compose up -d | |
- name: Cache Coursier dependencies | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cache/coursier | |
key: ${{ runner.os }}-${{ github.ref }}-coursier | |
restore-keys: | | |
${{ runner.os }}-${{ github.ref }}-coursier | |
- name: Cache Ivy dependencies | |
uses: actions/cache@v4 | |
with: | |
path: ~/.ivy2/cache | |
key: ${{ runner.os }}-${{ github.ref }}-ivy2 | |
restore-keys: | | |
${{ runner.os }}-${{ github.ref }}-ivy2 | |
- name: Tests | |
run: sbt -J-Xms4G -J-Xmx4G buildFs2Rabbit | |
- name: Shutting down RabbitMQ | |
run: docker compose down | |
migration-check: | |
runs-on: ubuntu-latest | |
needs: [build] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: coursier/setup-action@v1 | |
- name: Cache Coursier dependencies | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cache/coursier | |
key: ${{ runner.os }}-${{ github.ref }}-coursier | |
restore-keys: | | |
${{ runner.os }}-${{ github.ref }}-coursier | |
- name: Cache Ivy dependencies | |
uses: actions/cache@v4 | |
with: | |
path: ~/.ivy2/cache | |
key: ${{ runner.os }}-${{ github.ref }}-ivy2 | |
restore-keys: | | |
${{ runner.os }}-${{ github.ref }}-ivy2 | |
- name: Tests | |
run: sbt -J-Xms4G -J-Xmx4G +mimaReportBinaryIssues |