Skip to content

[finatra]: Portable shebang #302

[finatra]: Portable shebang

[finatra]: Portable shebang #302

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/checkout@v2.3.4
- 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: |
~/.dodo
~/.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: build dependencies
uses: twitter/dodo-build@v3
with:
branch: develop
project: finatra
no-test: true
publish-m2: true
verbose: true
- name: test
run: ${{ format('./sbt ++{0} clean test', matrix.scala) }}