Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add fossa github action job #31

Merged
merged 2 commits into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .fossa.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: 3

server: https://app.fossa.com

project:
id: github.com/openfga/spring-boot-starter
name: openfga/spring-boot-starter
link: openfga.dev
url: https://github.com/openfga/spring-boot-starter
27 changes: 24 additions & 3 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,29 @@
name: Checks
name: Checks

on: [pull_request, push]

jobs:
fossa:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: "17"
distribution: "temurin"
- name: Install dependencies
run: ./gradlew build
- name: Run FOSSA scan and upload build data
uses: fossas/fossa-action@main
with:
api-key: ${{ secrets.FOSSA_API_KEY }}
branch: ${{ github.ref_name }}
- name: Run FOSSA tests
uses: fossas/fossa-action@main
with:
api-key: ${{ secrets.FOSSA_API_KEY }}
run-tests: true
build:
name: Run Checks
runs-on: ubuntu-latest
Expand All @@ -14,7 +35,7 @@ jobs:
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
java-version: "17"
distribution: "temurin"
- name: Run Gradle check task
run: ./gradlew check --continue