Bump olafurpg/setup-scala from 10 to 14 #26
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 | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- 'v*' | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test-213: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: olafurpg/setup-scala@v14 | |
- name: Scalafmt | |
run: sbt scalafmtCheck | |
- name: Scalastyle | |
run: sbt scalastyle | |
- name: Test | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: sbt '++ 2.13.10' coverage test coverageReport | |
- name: Upload coverage | |
uses: codecov/codecov-action@v1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
fail_ci_if_error: true | |
test-212: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: olafurpg/setup-scala@v14 | |
- name: Test | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: sbt '++ 2.12.15' test | |
publish: | |
if: ${{ github.event_name != 'pull_request' }} | |
needs: [test-213, test-212] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: olafurpg/setup-scala@v14 | |
- name: Publish site | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
sbt makeSite | |
sbt publishToGitHubPages |