mirror of
https://github.com/IRS-Public/direct-file.git
synced 2025-08-03 12:48:31 +00:00
Adjust the trigger for fact graph tests to run when scala code is updated, instead of when backend directory contents are updated.
45 lines
989 B
YAML
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
|