Skip to content

Bump sbt and plugins, and update GHA CI #41

Bump sbt and plugins, and update GHA CI

Bump sbt and plugins, and update GHA CI #41

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.16, 2.12.20]
java: [8, 11, 17, 21]
experimental: [false]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout current branch (full)
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{ matrix.java }}
- name: Setup sbt launcher
uses: sbt/setup-sbt@v1
- 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 '++ ${{ matrix.scala }}' clean coverage test coverageReport
- name: Coverage Aggregate
run: sbt coverageAggregate
- name: Codecov
uses: codecov/codecov-action@v1
with:
fail_ci_if_error: false