-
-
Notifications
You must be signed in to change notification settings - Fork 77
57 lines (49 loc) · 1.44 KB
/
json-smart-unit-tests.yml
File metadata and controls
57 lines (49 loc) · 1.44 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: json smart unit tests
on:
push:
branches:
- master
- update2024
- upgrade
paths:
- 'accessors-smart/**'
- 'json-smart/**'
- 'json-smart-action/**'
- '.github/workflows/json-smart-unit-tests.yml'
pull_request:
branches:
- master
paths:
- 'accessors-smart/**'
- 'json-smart/**'
- 'json-smart-action/**'
- '.github/workflows/json-smart-unit-tests.yml'
permissions:
contents: read
jobs:
publish:
runs-on: ubuntu-latest
strategy:
matrix:
java-version: [8, 11, 17, 21, 22, 23]
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java-version }}
distribution: 'temurin'
cache: 'maven'
- name: Cache local Maven repository
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Unit tests accessors-smart
run: cd accessors-smart; ./mvnw -B install; ./mvnw -B clean test
- name: Unit tests json-smart
run: cd json-smart; ./mvnw -B install; ./mvnw -B clean test
- name: Unit tests json-smart-action
run: cd json-smart-action; ./mvnw -B install; ./mvnw -B clean test