Skip to content

Commit

Permalink
ci: a step to ensure all dependencies are added to combined package
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed Mar 8, 2023
1 parent 9f3ea97 commit 9245a7a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/check-deps.sh
@@ -0,0 +1,20 @@
#!/bin/bash

VOCABS=$(jq '.name' ontologies/*/package.json)

for vocab in $VOCABS
do
HAS_DEPENDENCY=$(grep "$vocab" packages/vocabularies/package.json)
if [ "$HAS_DEPENDENCY" ]
then
echo "${vocab}"
else
MISSING=true
echo "𝙭 ${vocab}"
fi
done

if [ $MISSING ]
then
exit 1
fi
8 changes: 8 additions & 0 deletions .github/workflows/node.js.yml
Expand Up @@ -30,3 +30,11 @@ jobs:
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

check-deps:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: sudo apt-get update
- run: sudo apt-get install jq
- run: .github/check-deps.sh

0 comments on commit 9245a7a

Please sign in to comment.