-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Sora Morimoto <[email protected]>
- Loading branch information
Showing
5 changed files
with
16 additions
and
3 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
import { exec } from "@actions/exec"; | ||
|
||
import { FOSSA_API_KEY } from "./constants"; | ||
import { FOSSA_API_KEY, SKIP_TEST } from "./constants"; | ||
|
||
export async function analyze(): Promise<void> { | ||
const PATH = process.env.PATH ? process.env.PATH : ""; | ||
const options = { env: { PATH, FOSSA_API_KEY } }; | ||
await exec("fossa", ["init"]); | ||
await exec("fossa", ["analyze"], options); | ||
await exec("fossa", ["test"], options); | ||
if (!SKIP_TEST) { | ||
await exec("fossa", ["test"], options); | ||
} | ||
} |
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