Skip to content
This repository was archived by the owner on Oct 8, 2025. It is now read-only.

Commit 6c35819

Browse files
authored
Create workflow to run unit tests
1 parent d3f3de4 commit 6c35819

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/unit-test.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Unit Test
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout repository
11+
uses: actions/checkout@v4
12+
13+
- name: Set up JDK 11
14+
uses: actions/setup-java@v2
15+
with:
16+
java-version: '11'
17+
18+
- name: Cache Gradle packages
19+
uses: actions/cache@v4
20+
with:
21+
path: ~/.gradle/caches
22+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
23+
restore-keys: ${{ runner.os }}-gradle
24+
25+
- name: Set up Gradle
26+
uses: gradle/gradle-build-action@v2
27+
28+
- name: Run unit tests
29+
run: ./gradlew test

0 commit comments

Comments
 (0)