-
Notifications
You must be signed in to change notification settings - Fork 11
35 lines (31 loc) · 939 Bytes
/
unit_tests.yml
File metadata and controls
35 lines (31 loc) · 939 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Unit Tests
on:
push:
jobs:
unit_tests:
name: unit tests (Java ${{ matrix.java }})
runs-on: ubuntu-latest
strategy:
matrix:
java: [17, 21]
steps:
- name: Fetch sources
uses: actions/checkout@v4
- name: Setup JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- name: Cache local Maven repository
uses: actions/cache@v4
with:
path: |
~/.m2/repository
~/.m2/wrapper
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Run unit tests
run: ./mvnw clean verify --show-version --batch-mode --errors --no-transfer-progress
env:
TEST_SNYK_TOKEN: ${{ secrets.TEST_SNYK_TOKEN }}
TEST_SNYK_ORG: ${{ secrets.TEST_SNYK_ORG }}