1
0
Fork 0
mirror of https://github.com/IRS-Public/direct-file.git synced 2025-08-03 12:48:31 +00:00
direct-file/.github/workflows/run-scala-factgraph-tests.yml
Skippy Williams 81b8fce00a Run scala tests on changes to fact-graph-scala
Adjust the trigger for fact graph tests to run when scala code is updated, instead of when backend directory contents are updated.
2025-06-20 18:04:55 -07:00

45 lines
989 B
YAML

name: Run Scala Fact-Graph test suite
on:
push:
paths:
- 'direct-file/fact-graph-scala/**'
branches: [main]
pull_request:
paths:
- 'direct-file/fact-graph-scala/**'
branches: [main]
jobs:
scala-tests:
name: Run Scala Fact Graph Tests
runs-on: ubuntu-latest
defaults:
run:
working-directory: direct-file/fact-graph-scala
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Cache sbt
uses: actions/cache@v3
with:
path: |
~/.ivy2/cache
~/.sbt
~/.coursier
key: sbt-cache-${{ runner.os }}-${{ hashFiles('backend/**.sbt') }}
restore-keys: |
sbt-cache-${{ runner.os }}
- uses: sbt/setup-sbt@v1
- name: Run Scala tests
run: sbt test