From 1bc0a234e35ac874bc2c9c8f3d76e55741c68a01 Mon Sep 17 00:00:00 2001 From: Sam Hill Date: Wed, 4 Jun 2025 20:15:03 -0400 Subject: [PATCH] run backend test suite --- .github/workflows/test-backend.yml | 44 ++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/test-backend.yml diff --git a/.github/workflows/test-backend.yml b/.github/workflows/test-backend.yml new file mode 100644 index 0000000..4958676 --- /dev/null +++ b/.github/workflows/test-backend.yml @@ -0,0 +1,44 @@ +name: Scala Backend Test Suite + +on: + push: + paths: + - 'backend/**' + branches: [main] + pull_request: + paths: + - '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