Update sbt-sonatype to 3.12.2 (#203) #351
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: | |
paths-ignore: | |
- '**.md' | |
branches-ignore: | |
- "gh-pages" | |
pull_request: | |
paths-ignore: | |
- '**.md' | |
branches-ignore: | |
- "gh-pages" | |
jobs: | |
build: | |
runs-on: ${{matrix.os}} | |
strategy: | |
matrix: | |
java: | |
- zulu@1.11 | |
- zulu@1.8 | |
os: | |
- ubuntu-latest | |
- macOS-latest | |
fail-fast: false | |
steps: | |
- name: Configure git | |
run: "git config --global core.autocrlf false" | |
shell: bash | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 100 | |
- name: Fetch tags | |
run: git fetch --depth=100 origin +refs/tags/*:refs/tags/* | |
- uses: coursier/cache-action@v5 | |
- uses: olafurpg/setup-scala@v12 | |
with: | |
java-version: ${{matrix.java}} | |
- name: Compile, test and check binary compatibility | |
run: "sbt -batch clean +test +mimaReportBinaryIssues" | |
shell: bash | |
- name: Test with coverage | |
if: ${{ matrix.os == 'ubuntu-latest' && matrix.java == 'zulu@1.8' }} | |
env: | |
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | |
run: "sbt -batch coverage test coverageAggregate coveralls" | |
shell: bash |