forked from scala/scala
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (44 loc) · 1.38 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
45
46
47
48
49
50
51
name: Scala Merge CI
on:
push:
branches: ['2.*.x']
defaults:
run:
shell: bash
jobs:
build_and_test:
name: Windows
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
include:
- java: 8
- java: 17-ea
steps:
- run: git config --global core.autocrlf false
- name: Checkout
uses: actions/checkout@v2
# Note that we don't use olafurpg/setup-scala; it wouldn't buy us anything
# over setup-java. (We don't want csbt or xsbt; we prefer the standard
# sbt launch script, which comes preinstalled on Windows (and Ubuntu).)
- name: Setup Java
uses: actions/setup-java@v2
with:
distribution: adopt
java-version: ${{matrix.java}}
- name: Cache
uses: actions/cache@v2
with:
path: |
~/.sbt
~/.ivy2/cache
~/.cache/coursier
key: ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
- name: Build
run: |
sbt setupPublishCore generateBuildCharacterPropertiesFile headerCheck publishLocal
- name: Test
run: |
STARR=`cat buildcharacter.properties | grep ^maven.version.number | cut -d= -f2` && echo $STARR
sbt -Dstarr.version=$STARR setupValidateTest test:compile info testAll