-
Notifications
You must be signed in to change notification settings - Fork 27
38 lines (36 loc) · 944 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
name: CI
on:
pull_request:
push:
branches:
- master
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
include:
- scala-version: '2.12.17'
sbt-version: '1.5.5'
java-version: 8
- scala-version: '2.12.17'
sbt-version: '1.5.5'
java-version: 11
- scala-version: '2.12.17'
sbt-version: '1.5.5'
java-version: 17
steps:
- name: Checkout current branch
uses: actions/checkout@v4
- name: Setup java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java-version }}
- uses: sbt/setup-sbt@v1
- name: Test
env:
SCALA_VERSION: ${{ matrix.scala-version }}
SBT_VERSION: ${{ matrix.sbt-version }}
run: sbt "++${SCALA_VERSION}" "^^${SBT_VERSION}" test scripted