-
Notifications
You must be signed in to change notification settings - Fork 133
48 lines (42 loc) · 1.2 KB
/
test.yml
File metadata and controls
48 lines (42 loc) · 1.2 KB
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
name: CI
on:
pull_request:
branches: ["*"]
push:
branches: ["master"]
jobs:
build:
name: Build and Test
strategy:
matrix:
os: [ubuntu-latest]
scala: [2.12.20, 2.13.16, 3.3.6]
java: [17, 21]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
# Container modules occupy too much disk space. The GitHub-hosted runners ran into the
# error: "no space left on device."
# This action will free up disk space by removing unnecessary files.
- name: Free Disk Space
uses: jlumbroso/free-disk-space@v1.3.1
if: runner.os == 'Linux'
with:
tool-cache: true
android: true
dotnet: true
haskell: true
large-packages: true
docker-images: true
swap-storage: false
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: temurin # See 'Supported distributions' for available options
java-version: ${{ matrix.java }}
check-latest: true
cache: "sbt"
- name: Setup sbt launcher
uses: sbt/setup-sbt@v1
- run: sbt ++${{ matrix.scala }} test