Skip to content

Commit

Permalink
add github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
EddeCCC committed Nov 20, 2024
1 parent c51fb40 commit 9c49813
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Baselining Tests

on:
push:
branches:
- main
pull_request:
branches:
- main
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

0 comments on commit 9c49813

Please sign in to comment.