File tree Expand file tree Collapse file tree 1 file changed +5
-19
lines changed
Expand file tree Collapse file tree 1 file changed +5
-19
lines changed Original file line number Diff line number Diff line change @@ -14,37 +14,23 @@ jobs:
1414 - name : Checkout the code
1515 uses : actions/checkout@v4
1616
17- - name : Set up Node.js
1817 uses : actions/setup-node@v4
1918 with :
2019 node-version : " lts/*"
2120
2221 - name : Install jsonld-lint
2322 run : |
24- npm install -g jsonld-lint
25-
26- - name : List globally installed npm packages
27- run : npm list -g --depth=0
28-
29- - name : Add npm global bin to PATH
30- run : |
31- echo "$(npm bin -g)" >> $GITHUB_PATH
32-
33- - name : Check current working directory
34- run : pwd
23+ npm install jsonld-lint
3524
36- - name : List files in data/software-tools
37- run : ls ./data/software-tools
38-
39- - name : Run JSON-LD lint checks
25+ - name : Run JSON-LD lint checks on each .jsonld file
4026 run : |
4127 for file in ./data/software-tools/*.json; do
42- if [ -f "$file" ]; then
28+ if [ -f "$file" ]; then # Ensure it's a regular file
4329 echo "Linting $file..."
44- jsonld-lint "$file"
30+ npx jsonld-lint "$file"
4531 fi
4632 done
47-
33+
4834 # - name: Set up Python 3.12
4935 # uses: actions/setup-python@v5
5036 # with:
You can’t perform that action at this time.
0 commit comments