Skip to content

Updates the Scala version to match the installed Scala versions #249

Updates the Scala version to match the installed Scala versions

Updates the Scala version to match the installed Scala versions #249

Workflow file for this run

# Much copied from sbt-github-actions, modified to support running e2e tests
name: Continuous Integration
on:
pull_request:
branches: ['*']
push:
branches: ['master']
jobs:
build:
name: Build and Test
if: "!contains(github.event.head_commit.message, 'ci skip')"
strategy:
matrix:
os: [ubuntu-latest]
scala: [2.12.18, 2.13.11]
java: [adopt@1.8]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout current branch (full)
uses: actions/checkout@v2.4.0
with:
fetch-depth: 0
- name: Setup Java and Scala
uses: olafurpg/setup-scala@v13
with:
java-version: ${{ matrix.java }}
- name: Cache ivy2
uses: actions/cache@v2.1.7
with:
path: ~/.ivy2/cache
key: ${{ runner.os }}-sbt-ivy-cache-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
- name: Cache coursier (linux)
uses: actions/cache@v2.1.7
with:
path: ~/.cache/coursier/v1
key: ${{ runner.os }}-sbt-coursier-cache-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
- name: Cache sbt
uses: actions/cache@v2.1.7
with:
path: ~/.sbt
key: ${{ runner.os }}-sbt-cache-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
- name: Run tests
run: sbt clean coverage test coverageReport
- name: Coverage Aggregate
run: sbt coverageAggregate
- name: Codecov
uses: codecov/codecov-action@v2.1.0
with:
fail_ci_if_error: true