Skip to content

Commit 77c23c4

Browse files
committed
unit test checks
1 parent 85623b5 commit 77c23c4

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
2+
name: Gradle Test Validation
3+
4+
on:
5+
push:
6+
branches: [ main ]
7+
pull_request:
8+
branches: [ main ]
9+
10+
jobs:
11+
validate:
12+
name: Validate with Gradle Tests
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
19+
- name: Set up JDK 17
20+
uses: actions/setup-java@v4
21+
with:
22+
distribution: 'temurin'
23+
java-version: '17'
24+
25+
- name: Grant execute permission to Gradle wrapper
26+
run: chmod +x ./gradlew
27+
28+
- name: Run Gradle tests
29+
run: ./gradlew test
30+
31+
- name: Upload test results (optional)
32+
if: always()
33+
uses: actions/upload-artifact@v4
34+
with:
35+
name: test-results
36+
path: build/test-results

0 commit comments

Comments
 (0)