Skip to content

all in one

all in one #744

Workflow file for this run

name: Java CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
env:
SEGMENT_DOWNLOAD_TIMEOUT_MINS: '5'
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'zulu' # See 'Supported distributions' for available options
java-version: '21'
- name: Cache Maven packages
id: cache-maven
uses: actions/cache@v2
with:
path: ~/.m2/repository
# save-always: true
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}
- name: Get Versions
run: |
echo "Google chrome version"
google-chrome --version
echo "firefox version"
firefox --version
echo "temp folder: ${{ runner.temp }}"
- name: Build with Maven
run: mvn --batch-mode --update-snapshots verify -Djava.io.tmpdir=${{ runner.temp }}
env:
NVD_NIST_APIKEY: ${{ secrets.NVD_NIST_APIKEY}}
- run: mkdir dist && cp target/*.jar dist
- uses: actions/upload-artifact@v4
with:
name: Package
path: dist