-
Notifications
You must be signed in to change notification settings - Fork 29
63 lines (48 loc) · 1.26 KB
/
test.yaml
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
52
53
54
55
56
57
58
59
60
61
62
63
name: test
on:
push:
pull_request:
workflow_dispatch:
inputs:
ref:
description: "checkout reference (sha/branch)"
required: false
type: string
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# macOS 13/14 uses different CPU architectures, older ubuntu because 24.04 is well tested outside of CI
os: [macOS-13, macOS-14, ubuntu-22.04, windows-2022]
java-version: [17, 21, 23]
env:
JAVA_OPTS: -Xmx4g
steps:
- uses: actions/checkout@v4
- uses: coursier/cache-action@v6
- uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java-version}}
distribution: "zulu"
- uses: sbt/setup-sbt@v1
with:
sbt-runner-version: 1.10.5
- uses: actions/setup-node@v4
with:
node-version: "18"
- name: install jsdom
run: npm install jsdom
- name: start sbt
run: sbt exit
- name: compile
run: sbt compile
- name: compile tests
run: sbt Test/compile
- name: compile tests js
run: sbt Test/fastLinkJS
- name: compile tests native
run: sbt Test/nativeLink
- name: test
run: sbt test