2023-06-22 11:59:56 +00:00
|
|
|
name: Run sbt tests with workflow_call
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_call:
|
|
|
|
inputs:
|
|
|
|
ref:
|
|
|
|
description: "git ref to checkout to"
|
|
|
|
type: string
|
|
|
|
default: "main"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
tests:
|
|
|
|
name: "Run sbt tests"
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
2023-09-11 12:42:20 +00:00
|
|
|
uses: actions/checkout@v4
|
2023-06-22 11:59:56 +00:00
|
|
|
with:
|
|
|
|
repository: fluencelabs/aqua
|
|
|
|
ref: ${{ inputs.ref }}
|
|
|
|
|
|
|
|
- name: Cache Scala
|
|
|
|
uses: coursier/cache-action@v6
|
|
|
|
|
|
|
|
- name: Setup Scala
|
|
|
|
uses: coursier/setup-action@v1
|
|
|
|
with:
|
|
|
|
apps: sbt
|
|
|
|
|
|
|
|
- name: Run tests
|
2024-06-24 12:20:27 +00:00
|
|
|
run: env JAVA_OPTS="-Xmx4G" sbt "headerCheckAll; test"
|