-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 1007 Bytes
/
CI.yml
File metadata and controls
44 lines (37 loc) · 1007 Bytes
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
name: CI
on:
pull_request:
branches: ["master"]
jobs:
backend-test:
permissions:
contents: read
checks: write
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 11
distribution: "temurin"
- name: Cache Gradle packages
uses: actions/cache@v3
with:
path: backend/.gradle
key: ${{ runner.os }}-gradle-${{ hashFiles('backend/**/*') }}
restore-keys: ${{ runner.os }}-gradle-
- name: Grant Execute Permission For Gradlew
run: chmod +x backend/gradlew
- name: Test with Gradle
run: |
cd backend
./gradlew build --info
- name: Test Report
uses: dorny/test-reporter@v1
if: always()
with:
name: Test Report
path: "backend/build/test-results/**/*.xml"
reporter: java-junit