Skip to content

Merge pull request #433 from qld-gov-au/develop #734

Merge pull request #433 from qld-gov-au/develop

Merge pull request #433 from qld-gov-au/develop #734

Workflow file for this run

name: Java CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache Maven packages
id: cache-nvm
uses: actions/cache@v4
with:
path: ~/.m2
save-always: true
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('pom.xml') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'zulu' # See 'Supported distributions' for available options
java-version: '21'
- 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