Skip to content

Add supply-chain review target #245

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

Merged
merged 1 commit into from
Apr 7, 2023
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
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
[submodule "dependencies/CASE-develop"]
path = dependencies/CASE-develop
url = https://github.com/casework/CASE.git
branch = develop
[submodule "dependencies/CASE-develop-2.0.0"]
path = dependencies/CASE-develop-2.0.0
url = https://github.com/casework/CASE.git
branch = develop-2.0.0
[submodule "dependencies/CASE-unstable"]
path = dependencies/CASE-unstable
url = https://github.com/casework/CASE-Archive.git
branch = unstable
[submodule "dependencies/CASE-unstable-2.0.0"]
path = dependencies/CASE-unstable-2.0.0
url = https://github.com/casework/CASE-Archive.git
branch = unstable-2.0.0
27 changes: 26 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ all: \
all-ontology \
check-examples \
check-migration-0.2.0 \
check-ontology
check-ontology \
check-supply-chain \
check-supply-chain-pre-commit \
check-supply-chain-submodules

.dependencies.done.log: \
.venv.done.log
Expand Down Expand Up @@ -138,6 +141,28 @@ check-ontology: \
--directory ontology \
check

# This target's dependencies potentially modify the working directory's Git state, so it is intentionally not a dependency of check.
check-supply-chain: \
check-supply-chain-pre-commit \
check-supply-chain-submodules

check-supply-chain-pre-commit: \
.venv-pre-commit/var/.pre-commit-built.log
source .venv-pre-commit/bin/activate \
&& pre-commit autoupdate
git diff \
--exit-code \
.pre-commit-config.yaml

check-supply-chain-submodules: \
.git_submodule_init.done.log
git submodule update \
--remote
git diff \
--exit-code \
--ignore-submodules=dirty \
dependencies

clean:
@$(MAKE) \
--directory examples \
Expand Down