-
Notifications
You must be signed in to change notification settings - Fork 223
45 lines (39 loc) · 1.22 KB
/
backend_tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: "Backend Tests"
run-name: "Backend Tests on ${{ github.ref_name }} by @${{ github.actor }}"
on:
pull_request:
paths:
- "apps/opik-backend/**"
push:
branches:
- 'main'
paths:
- "apps/opik-backend/**"
workflow_dispatch:
jobs:
run-backend-tests:
runs-on: ubuntu-latest
defaults:
run:
working-directory: apps/opik-backend/
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 1
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'corretto'
cache: maven
- name: Run Tests for backend
run: mvn clean test -Dmaven.test.failure.ignore=true
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
if: success() || failure() # always run even if the previous step fails
with:
report_paths: '**/target/surefire-reports/TEST-*.xml'
fail_on_failure: true
summary: true
detailed_summary: true