Skip to content

Commit 2e01087

Browse files
committed
Add test CI
1 parent 970c9c4 commit 2e01087

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/tests.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Test
2+
on:
3+
- pull_request
4+
- push
5+
jobs:
6+
test:
7+
name: Build and run Tests
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout Code
11+
uses: actions/checkout@v3
12+
- name: Set up JDK 21
13+
uses: actions/setup-java@v3
14+
with:
15+
java-version: 21
16+
distribution: temurin
17+
- name: Setup gradle
18+
uses: gradle/actions/setup-gradle@v3
19+
- name: Run tests
20+
run: ./gradlew check
21+
- name: Upload Test Report
22+
uses: actions/upload-artifact@v3
23+
if: always() # always run even if the previous step fails
24+
with:
25+
name: junit-test-results
26+
path: '**/build/test-results/test/TEST-*.xml'
27+
retention-days: 1

0 commit comments

Comments
 (0)