Skip to content

fix: fromSeq stack-safe #396

fix: fromSeq stack-safe

fix: fromSeq stack-safe #396

name: continuous integration
env:
JAVA_OPTS: "-Dsbt.log.noformat=true"
TRAVIS: "true" # pretend we're TravisCI
SBT_VERSION: 1.7.1
BUILD_VERSION: "v1" # bump this if builds are failing due to a bad cache
defaults:
run:
shell: bash
on:
push:
branches:
- develop
- release
pull_request:
jobs:
build:
strategy:
fail-fast: false
matrix:
scala: [2.12.12, 2.13.6]
java: ['1.8', '1.11']
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: echo java version
run: java -Xmx32m -version
- name: echo javac version
run: javac -J-Xmx32m -version
- name: cache build dependencies
uses: actions/cache@v2
env:
cache-name: cache-build-deps
with:
path: |
~/.ivy2/cache
~/.ivy2/local/com.twitter
~/.sbt
key: ${{ runner.os }}-build-${{ env.BUILD_VERSION }}-${{ env.cache-name }}-${{ env.SBT_VERSION }}-${{ matrix.scala }}-${{ matrix.java }}
- name: update cache
run: |
if [ -f ~/.ivy2/cache ]; then
find ~/.ivy2/cache -name "ivydata-*.properties" -delete
fi
if [ -f ~/.sbt ]; then
find ~/.sbt -name "*.lock" -delete
fi
- name: test
run: ${{ format('./sbt ++{0} clean test', matrix.scala) }}