-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (42 loc) · 1.06 KB
/
DevPrBackEnd.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
name: BE Dev PR pipeline.
on:
pull_request:
branches: ["development"]
jobs:
build:
name: Dev PR Pipeline Back End
runs-on: ubuntu-latest
defaults:
run:
working-directory: 'back_end' # Update this if your project files are in a specific directory
steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: 17
distribution: 'adopt'
- name: Set Up Gradle
run: |
chmod +x gradlew
./gradlew wrapper
- name: Build Project
run: |
chmod +x gradlew
./gradlew build
- name: Check formatting
run: |
chmod +x gradlew
./gradlew check
- name: Run Tests
run: |
chmod +x gradlew
./gradlew test
- name: Generate Coverage Report
run: |
chmod +x gradlew
./gradlew jacocoTestReport
- name: Check Coverage
run: |
chmod +x gradlew
./gradlew jacocoTestCoverageVerification