Backend Test Stage #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |