Skip to content

Commit

Permalink
add package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
eshaan-deepsource committed Jan 16, 2024
1 parent 2519580 commit 1e69334
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/run-solhint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.sha }}

- uses: actions/setup-node@v4 (Install deps and solhint)
- uses: actions/setup-node@v4
with:
node-version: "16"
cache: npm
cache-dependency-path: "solidity/package-lock.json"

- name: Run solhint
id: solhint
Expand All @@ -41,7 +42,7 @@ jobs:
curl https://deepsource.io/cli | sh
# Send the report to DeepSource
./bin/deepsource report --analyzer solhint --analyzer-type community --value-file solidity/solhint.sarif
./bin/deepsource report --analyzer solhint --analyzer-type community --value-file solhint.sarif
# Ensure the workflow eventually fails if files did not pass solhint checks.
- name: Verify solhint succeeded
Expand Down
15 changes: 8 additions & 7 deletions solidity/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion solidity/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"devDependencies": {
"solhint": "solhint@^4.1.1"
"solhint": "^4.1.1"
}
}

0 comments on commit 1e69334

Please sign in to comment.