Skip to content

Commit 6c6ab86

Browse files
committed
Add unit tests actions workflow
1 parent 796a593 commit 6c6ab86

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Runs all unit tests in the project
2+
name: "Run Unit Tests"
3+
4+
on:
5+
# Automatically run on pushes directly to main.
6+
push:
7+
branches: [ main ]
8+
9+
jobs:
10+
build-and-test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: Setup JDK 21
17+
uses: actions/setup-java@v4
18+
with:
19+
distribution: 'adopt'
20+
java-version: '21'
21+
22+
- name: Setup Gradle
23+
uses: gradle/actions/setup-gradle@v4
24+
25+
- name: Grant execute permission for gradlew
26+
run: chmod +x gradlew
27+
28+
- name: Run all unit tests
29+
run: ./gradlew test

0 commit comments

Comments
 (0)