-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (29 loc) · 854 Bytes
/
ci.yml
File metadata and controls
37 lines (29 loc) · 854 Bytes
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
name: Scala CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [17, 21] # test against both Java 17 and 21
distribution: ['temurin', 'zulu', 'corretto', 'microsoft'] # test across JDK vendors
fail-fast: false # continue testing even if one combination fails
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Set up JDK ${{ matrix.java }} (${{ matrix.distribution }})
uses: actions/setup-java@v5
with:
distribution: ${{ matrix.distribution }}
java-version: ${{ matrix.java }}
cache: sbt
- name: Set up sbt
uses: sbt/setup-sbt@v1
- name: Run tests
run: sbt compile test