Skip to content

Commit

Permalink
chore(ci): add FOSSA workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
evansims committed Jul 11, 2024
1 parent f9b9641 commit 303614d
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/fossa.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: FOSSA

on:
workflow_dispatch:
push:
branches:
- main

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

0 comments on commit 303614d

Please sign in to comment.