fix github action (#31) #2
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: Baselining Tests | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
paths-ignore: | |
- 'README.md' | |
workflow_call: | |
env: | |
NVD_API_TOKEN: ${{ secrets.NVD_API_KEY }} # Token to access NVD API for dependency-check | |
jobs: | |
test: | |
name: Run Tests | |
runs-on: ubuntu-latest | |
container: openjdk:17-jdk-slim | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: test | |
run: ./gradlew test | |
dependency-scan: | |
name: Dependency Scan | |
runs-on: ubuntu-latest | |
container: openjdk:17-jdk-slim | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Scan dependencies | |
run: ./gradlew dependencyCheckAnalyze |