-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (43 loc) · 1.02 KB
/
backend-ci.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
46
47
48
49
50
name: Build test with Gradle
on:
push:
branches:
- develop
paths:
- 'backend/**'
pull_request:
branches:
- develop
paths:
- 'backend/**'
jobs:
build:
permissions:
contents: read
issues: read
checks: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Checkout to current repository
uses: actions/checkout@v4
- name: Setup JDK Corretto using cached gradle dependencies
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: 17
cache: 'gradle'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: 8.8
- name: Build and test with gradle
run: |
cd ./backend
./gradlew test
- name: Publish test results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: |
./backend/build/test-results/**/*.xml