-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 973 Bytes
/
Copy pathtest-java17.yml
File metadata and controls
39 lines (35 loc) · 973 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
36
37
38
39
name: Java 17
on:
pull_request:
paths:
- '.github/workflows/test-java17.yml'
- 'java17/src/**'
- 'java17/pom.xml'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
name: Build (Java ${{ matrix.java-version }})
strategy:
matrix:
java-version: ['17', '21']
timeout-minutes: 5
defaults:
run:
working-directory: java17
permissions:
contents: read
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
persist-credentials: false
- uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5
with:
distribution: temurin
java-version: ${{ matrix.java-version }}
cache: maven
- run: ./mvnw test -q -Dtest=OptimalPortfolioScenarioTest