Skip to content

Backend Test Stage

Backend Test Stage #2

Workflow file for this run

name: Backend Test Stage
on:
workflow_run:
workflows:
- Backend Build Stage
types:
- completed
defaults:
run:
working-directory: ./backend
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v2
# - name: Run the Gradle package task and cache the result
# uses: gradle/gradle-build-action@v3
# with:
# arguments: -b ci.gradle package
- name: Test
run: ./gradlew check
# Define artifacts and reports from this job
# Always save artifacts, even if the job fails
# Adjust the path to match your test results location
# Learn more: https://docs.github.com/en/actions/guides/storing-workflow-data-as-artifacts
- name: Upload report
uses: actions/upload-artifact@v4
with:
name: report
path: build/test-results/test/**/*.xml