build(deps): bump com.puppycrawl.tools:checkstyle #873
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | |
cache: 'maven' | |
- 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: Build with Maven | |
run: mvn --batch-mode --update-snapshots verify -Djava.io.tmpdir=${{ runner.temp }} | |
env: | |
NVD_NIST_APIKEY: ${{ secrets.NVD_NIST_APIKEY}} | |
- name: Package artifacts | |
run: | | |
mkdir staging | |
cp -rf target/*.jar staging | |
cp -rf target/*reports staging | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Package | |
path: staging | |
overwrite: true | |
- name: Cache NVD Database | |
uses: actions/cache/save@v4 | |
if: ${{ always() }} | |
with: | |
path: ~/.m2/repository/org/owasp/dependency-check-data | |
key: nvd-cache-${{ runner.os }}-${{ github.run_id }} | |