Turn demo into a template #1
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: CI build | |
on: | |
push: | |
branches: [ master ] | |
tags: [ '*' ] | |
pull_request: | |
branches: [ master ] | |
types: [ opened, reopened, labeled, synchronize ] | |
jobs: | |
check-formatting: | |
runs-on: ubuntu-latest | |
if: github.event_name == 'push' || github.event.action != 'labeled' # run for 'opened', 'reopened' and 'synchronize' | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: coursier/[email protected] | |
with: | |
apps: scalafmt | |
- name: Check formatting | |
run: scalafmt --check | |
build: | |
runs-on: ubuntu-latest | |
if: github.event_name == 'push' || github.event.action != 'labeled' # run for 'opened', 'reopened' and 'synchronize' | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: coursier/cache-action@v6 | |
- uses: coursier/[email protected] | |
with: | |
jvm: temurin:1.8.0-392 | |
apps: sbt | |
- name: Clean, compile, test, generate coverage report, check MiMa | |
run: sbt test |