mirror of
https://github.com/IRS-Public/direct-file.git
synced 2025-06-27 20:25:52 +00:00
run backend test suite
This commit is contained in:
parent
ffde0cfbcd
commit
9b4be4dd51
1 changed files with 44 additions and 0 deletions
44
.github/workflows/test-backend.yml
vendored
Normal file
44
.github/workflows/test-backend.yml
vendored
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue