1
0
Fork 0
mirror of https://github.com/IRS-Public/direct-file.git synced 2025-06-28 04:25:52 +00:00

run backend test suite

This commit is contained in:
Sam Hill 2025-06-04 20:15:03 -04:00 committed by Skippy Williams
parent ffde0cfbcd
commit 9b4be4dd51

44
.github/workflows/test-backend.yml vendored Normal file
View file

@ -0,0 +1,44 @@
name: Scala Backend Test Suite
on:
push:
paths:
- 'direct-file/backend/**'
branches: [main]
pull_request:
paths:
- 'direct-file/backend/**'
branches: [main]
jobs:
backend-tests:
name: Run Scala Backend Tests
runs-on: ubuntu-latest
defaults:
run:
working-directory: backend
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 }}
- name: Run Scala tests
run: sbt test