forked from scala/scala
-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (34 loc) · 959 Bytes
/
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
name: Scala Merge CI
on:
push:
branches: ['2.*.x']
workflow_dispatch:
defaults:
run:
shell: bash
jobs:
build_and_test:
name: Test
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
java: [8, 11, 17, 21, 22, 23-ea]
runs-on: ${{matrix.os}}
steps:
- run: git config --global core.autocrlf false
- name: Checkout
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{matrix.java}}
cache: sbt
- 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