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
Upgrade to grype 0.16.0 and add tests #102 #112
Changes from all commits
5716ac3
619e7a0
4051378
3cfba1e
4911b8c
ce94f47
f249624
44d06ac
bb0349e
04e0209
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,6 +47,22 @@ bootstrap: ## Download and install all go dependencies (+ prep tooling in the ./ | |
# prep temp dirs | ||
mkdir -p tests/functional/output | ||
|
||
.PHONY: run-docker-registry | ||
run-docker-registry: bootstrap | ||
# start a local registry | ||
docker run -d -p 5000:5000 --name registry registry:2 | echo | ||
|
||
.PHONY: test | ||
test: run-docker-registry bootstrap | ||
npm run build | ||
./act -v -P ubuntu-latest=ghcr.io/catthehacker/ubuntu:js-latest -j test | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I may have missed it — are we explicitly installing There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes, in |
||
|
||
.PHONY: wipe-docker | ||
wipe-docker: | ||
docker kill $(shell docker ps -a -q) | echo | ||
docker image prune -af | ||
docker container prune -f | ||
docker volume prune -f | ||
|
||
%: ## do a local build | ||
scripts/local.sh "$*" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think it's worth trying to have all of these steps be available as make tasks? (For local use)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these are not required for local use, running
make test
will cause this workflow to be executed and that's why it's needed becauseact
is giving a container without node for some unexplained reason. but ALSO it's just easier to installnode
&docker
& add the registry container and then runjest
directly because you can easily debug the code and such.