Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 19 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: CI

on:
Expand All @@ -11,30 +8,34 @@ on:

jobs:
build:
timeout-minutes: 20
runs-on: ${{ matrix.platform }}
strategy:
matrix:
java: [11, 17]
platform: [ubuntu-22.04]
platform: [ubuntu-24.04]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v7
with:
lfs: true

- uses: actions/cache@v6
with:
path: |
~/.sbt
~/.m2
~/.ivy2
~/.cache
key: ${{ runner.os }}-build-${{ hashFiles('build.sbt', 'project/**') }}

- name: Set up JDK
uses: actions/setup-java@v1
uses: actions/setup-java@v6
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}

- name: Cache maven packages
uses: actions/cache@v2
env:
cache-name: cache-sbt
with:
path: ~/.m2 ~/.coursier ~/.cache/coursier ~/.ivy2 ~/.sbt
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Set up sbt
uses: sbt/setup-sbt@v1

- name: Run tests
run: sbt "+test"
run: sbt -mem 3000 "+test"