-
Notifications
You must be signed in to change notification settings - Fork 153
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 #510 from etclabscore/merge/foundation-release/1.1…
…0.26 Merge/foundation release/1.10.26
- Loading branch information
Showing
79 changed files
with
902 additions
and
524 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
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,67 @@ | ||
name: Developer helper | ||
on: pull_request | ||
env: | ||
# GENERATE_EXCEPTIONS are exceptions made to the 'go generate' command. | ||
# These patterns are matched (negatively) against 'go list' output. | ||
# | ||
# - trezor: Ignore generating trezor package based on this comment: | ||
# https://github.com/ethereum/go-ethereum/blob/master/accounts/usbwallet/trezor/trezor.go#L21-L43 | ||
GENERATE_EXCEPTIONS: | | ||
trezor | ||
jobs: | ||
go-generate-check: | ||
name: Check if "go generate" has been run | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Go 1.x | ||
id: go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ^1.16 | ||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Install deps | ||
id: install-deps | ||
run: | | ||
SOLC_BIN=solc-linux-amd64-v0.6.0+commit.26b70077 | ||
curl -OL https://binaries.soliditylang.org/linux-amd64/$SOLC_BIN | ||
sudo mv $SOLC_BIN /usr/bin/solc | ||
sudo chmod +x /usr/bin/solc | ||
shell: bash | ||
- name: Install devtools | ||
id: install-devtools | ||
run: make devtools | ||
- name: Run go:generate | ||
id: go-generate | ||
run: | | ||
list="$(go list ./...)" | ||
for pattern in ${GENERATE_EXCEPTIONS[@]}; do | ||
list="$(grep -v "$pattern" <<< "$list")" | ||
done | ||
go generate "$list" | ||
- name: Revert custom generated files modifications before comparing them | ||
id: revert-custom-generated-modifications | ||
run: | | ||
# NOTE to developers checking what triggered this alert. | ||
# This script is meant to alert you if some files have to be regenerated using `go generate`. | ||
# If this happens, you have to run `go generate ./...` and then check the below commits that are being reverted and reapply them, after considering if they are needed. | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
# Intentionally revert this commit which has a custom modification to the genesis unmarshaling, | ||
# with regards reading different genesis formats origniating from different clients | ||
# This way, this script can alert us on any code changes that have to be applied on if file gets changed. | ||
git revert --no-edit 4b2cf83737ffe7c46c334a11414d151de049e0b3 | ||
- name: Check for modified files | ||
id: git-check | ||
run: | | ||
if ! git diff-index --quiet HEAD --; then | ||
echo "🔴 ERROR: There are modified files after running 'go generate'" | ||
git status | ||
exit 1 | ||
fi |
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,11 +1,12 @@ | ||
[submodule "tests"] | ||
path = tests/testdata | ||
url = https://github.com/etclabscore/tests | ||
url = https://github.com/ethereum/tests | ||
shallow = true | ||
[submodule "evm-benchmarks"] | ||
path = tests/evm-benchmarks | ||
url = https://github.com/ipsilon/evm-benchmarks | ||
shallow = true | ||
[submodule "tests-etc"] | ||
path = tests/testdata-etc | ||
url = https://github.com/etclabscore/tests-etc | ||
url = https://github.com/etclabscore/tests | ||
shallow = true |
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 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
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 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
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
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.