Skip to content

Build for Scala 2.12 and 2.13 #22

Build for Scala 2.12 and 2.13

Build for Scala 2.12 and 2.13 #22

Workflow file for this run

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@v10
- 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@v10
- 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@v10
- name: Publish site
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
sbt makeSite
sbt publishToGitHubPages