-
Notifications
You must be signed in to change notification settings - Fork 7
44 lines (44 loc) · 1.24 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: CI Build
on:
pull_request:
push:
schedule:
- cron: '0 6 * * 3'
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
include:
- TRAVIS_SCALA_VERSION: 2.13.1
jdk_version: 14
- TRAVIS_SCALA_VERSION: 2.13.1
jdk_version: 11
- TRAVIS_SCALA_VERSION: 2.13.1
jdk_version: 8
steps:
- uses: actions/checkout@v2
- uses: actions/setup-ruby@v1
with:
ruby-version: '2.7'
- uses: olafurpg/setup-scala@v10
with:
java-version: "adopt@1.${{ matrix.jdk_version }}"
- name: Cache sbt
uses: actions/cache@v2
with:
path: |
~/.sbt
~/.ivy2/cache
~/.coursier
~/.cache/coursier
key: sbt-cache-${{ runner.os }}-${{ matrix.target-platform }}-${{ hashFiles('project/build.properties') }}
- name: Build
run: |
export TRAVIS_SCALA_VERSION=${{ matrix.TRAVIS_SCALA_VERSION }}
export TEST_TYPE=${{ matrix.TEST_TYPE }}
./travis.sh
find $HOME/.sbt -name "*.lock" | xargs rm -f
find $HOME/.ivy2 -name "ivydata-*.properties" | xargs rm -f