Skip to content

Commit c3a82ac

Browse files
authored
Merge pull request #945 from exadel-inc/EFRS-1336-action-unit-tests-maven
EFRS-1336 Add action for Maven unit tests
2 parents 6587d34 + 5d5ea4a commit c3a82ac

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# This workflow will run a Unit tests on project with Maven, and cache/restore any dependencies to improve the workflow execution time
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
3+
4+
name: Unit tests on Maven
5+
6+
on:
7+
push:
8+
branches: [ "master" ]
9+
pull_request:
10+
branches: [ "master" ]
11+
12+
jobs:
13+
tests:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
19+
- uses: actions/checkout@v3
20+
21+
- name: Set up JDK 17
22+
uses: actions/setup-java@v3
23+
with:
24+
java-version: '17'
25+
distribution: 'temurin'
26+
cache: maven
27+
28+
- name: Unit tests with Maven
29+
working-directory: ./java
30+
run: mvn clean test
31+

0 commit comments

Comments
 (0)