Skip to content

Commit

Permalink
chore: install grype ahead of tests
Browse files Browse the repository at this point in the history
Signed-off-by: Will Murphy <will.murphy@anchore.com>
  • Loading branch information
willmurphyscode committed Nov 20, 2023
1 parent ebcd38e commit da82014
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ jest.mock("@actions/core");
jest.mock("@actions/exec");
jest.mock("@actions/tool-cache");

beforeAll(async () => {
const { grypeVersion } = require("../GrypeVersion");
const { installGrype } = require("../index");
await installGrype(grypeVersion);
});

const core = require("@actions/core");
const path = require("path");
const fs = require("fs");
Expand Down

0 comments on commit da82014

Please sign in to comment.