-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #619 from protofire/develop
Merge Develop to Master v5.0.4
- Loading branch information
Showing
155 changed files
with
947 additions
and
719 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: PRE-COMMIT | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- develop | ||
tags: | ||
- '*' | ||
pull_request: | ||
paths: | ||
- .github/workflows/PRE-COMMIT-HOOK-TEST.yml | ||
- .pre-commit-hooks.yaml | ||
- e2e/pre-commit-hook/* | ||
- package.json | ||
|
||
jobs: | ||
hook-test: | ||
runs-on: ubuntu-latest | ||
name: Test Hook | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
- name: Install pre-commit | ||
run: | | ||
python -m pip install pre-commit | ||
- name: Test hooks | ||
run: | | ||
./e2e/pre-commit-hook/test.sh |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
- id: solhint | ||
name: solhint | ||
description: Lint Solidity files with Solhint | ||
entry: solhint | ||
types: ["solidity"] | ||
language: node |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
## Setting up Git Hooks | ||
|
||
After cloning the repository, set up the pre-commit hook by running the following commands: | ||
|
||
`git config --unset core.hooksPath` | ||
To reset the hooks config to git default | ||
|
||
```sh | ||
touch .git/hooks/pre-commit | ||
chmod +x .git/hooks/pre-commit | ||
echo '#!/bin/sh\nnode scripts/check-changes.js' > .git/hooks/pre-commit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
FROM node:20-alpine | ||
LABEL maintainer="diego.bale@protofire.io" | ||
ENV VERSION=5.0.3 | ||
ENV VERSION=5.0.4 | ||
|
||
RUN npm install -g solhint@"$VERSION" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.