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

Commit 6ab2144

Browse files
authored
Merge pull request #72 from Zenfulcode/patch-new-run-tests-workflow
adding tests job to workflows
2 parents 62e2819 + f94ecd0 commit 6ab2144

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Run Tests
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
run-tests:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Set up JDK 21
17+
uses: actions/setup-java@v4
18+
with:
19+
java-version: '21'
20+
distribution: 'temurin'
21+
22+
- name: Cache Maven packages
23+
uses: actions/cache@v4
24+
with:
25+
path: ~/.m2/repository
26+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
27+
restore-keys: |
28+
${{ runner.os }}-maven-
29+
30+
- name: Install dependencies
31+
run: mvn install -DskipTests
32+
33+
- name: Run tests
34+
run: mvn test

0 commit comments

Comments
 (0)