Skip to content

Update build.sbt

Update build.sbt #1

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')"
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
scala: [2.13.6, 2.12.14, 2.11.12]
java: [[email protected], [email protected]]
experimental: [false]
include:
- os: ubuntu-latest
scala: 2.13.6
java: [email protected]
experimental: true
runs-on: ${{ matrix.os }}
steps:
- name: Checkout current branch (full)
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Java and Scala
uses: olafurpg/setup-scala@v12
with:
java-version: ${{ matrix.java }}
- name: Cache ivy2
uses: actions/cache@v1
with:
path: ~/.ivy2/cache
key: ${{ runner.os }}-sbt-ivy-cache-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
- name: Cache coursier (linux)
uses: actions/cache@v1
with:
path: ~/.cache/coursier/v1
key: ${{ runner.os }}-sbt-coursier-cache-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
- name: Cache sbt
uses: actions/cache@v1
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@v1
with:
fail_ci_if_error: true