-
Notifications
You must be signed in to change notification settings - Fork 1
66 lines (54 loc) · 1.7 KB
/
test.yml
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
name: Java CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'zulu'
- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Cache NVD Database
id: cache-nvd
uses: actions/cache/restore@v4
with:
path: ~/.m2/repository/org/owasp/dependency-check-data
key: nvd-cache-${{ runner.os }}-${{ github.run_id }}
restore-keys: |
nvd-cache-${{ runner.os }}-
- name: Get Versions
run: |
echo "Google chrome version"
google-chrome --version
echo "firefox version"
firefox --version
echo "temp folder: ${{ runner.temp }}"
- name: Prep environment
run: |
git submodule update --init
pushd utils/dumbster
mvn install -Dmaven.test.skip=true -Ddependency.skip=true
popd
pushd utils/selenium-helper
mvn install -Dmaven.test.skip=true -Ddependency.skip=true
- name: Build with Maven
run: mvn --batch-mode verify
- run: mkdir staging && cp */target/*.war staging
- uses: actions/upload-artifact@v4
with:
name: Package
path: staging
- name: Cache M2 repository always
uses: actions/cache/save@v4
if: ${{ failure() }}
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}