-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathconfig.yml
More file actions
73 lines (70 loc) · 1.79 KB
/
config.yml
File metadata and controls
73 lines (70 loc) · 1.79 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
version: 2.1
workflows:
tests:
jobs:
- unit-tests:
name: java21
image: "cimg/openjdk"
version: "21.0"
- unit-tests:
name: java22
image: "cimg/openjdk"
version: "22.0"
- unit-tests:
name: java23
image: "cimg/openjdk"
version: "23.0"
- unit-tests:
name: java24
image: "cimg/openjdk"
version: "24.0"
- unit-tests:
name: java25
image: "cimg/openjdk"
version: "25.0"
- security-scan:
context:
- snyk
jobs:
security-scan:
docker:
- image: cimg/openjdk:21.0
steps:
- checkout
- run:
name: Install dependencies
command: mvn install -DskipTests=true -Dmaven.javadoc.skip=true -Dgpg.skip=true -B -V
- run:
name: Install Snyk CLI
command: |
curl -Lo ./snyk "https://static.snyk.io/cli/latest/snyk-linux"
chmod +x ./snyk
sudo mv ./snyk /usr/local/bin/
- run:
name: Run Snyk Scan
command: |
snyk auth $SNYK_TOKEN
snyk monitor \
--all-projects \
--exclude=test \
--org=$SNYK_ORG_ID
unit-tests:
parameters:
version:
type: string
image:
type: string
docker:
- image: << parameters.image >>:<< parameters.version >>
steps:
- checkout
- run:
name: Versions
command: |
echo "java: $(java -version)"
- run:
name: Install dependencies
command: mvn install -DskipTests=true -Dmaven.javadoc.skip=true -Dgpg.skip=true -B -V
- run:
name: Run tests
command: mvn test -DforkCount=1 -DreuseForks=false