For #487 - pass secrets to Earthly #6
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: Build with Maven directly | |
env: | |
OWASP_NVD_API_KEY: ${{ secrets.OWASP_NVD_API_KEY }} | |
on: | |
push: | |
paths-ignore: | |
- '*.md' | |
- 'images/**' | |
pull_request: | |
paths-ignore: | |
- '*.md' | |
- 'images/**' | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Builds and tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- name: Setup JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
cache: maven | |
- name: Build and test | |
run: ./mvnw --batch-mode --update-snapshots verify | |
- name: Execute run script | |
run: ./run-with-maven.sh |