-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: solidity native compile diff checks (#15312)
* fix: solidity native compile diff checks * fix: checkout repos side-by-side
- Loading branch information
Showing
1 changed file
with
17 additions
and
3 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 |
---|---|---|
|
@@ -76,27 +76,41 @@ jobs: | |
steps: | ||
- name: Checkout the repo | ||
uses: actions/[email protected] | ||
with: | ||
path: chainlink | ||
|
||
- name: Checkout diff-so-fancy | ||
uses: actions/[email protected] | ||
with: | ||
repository: so-fancy/diff-so-fancy | ||
ref: a673cb4d2707f64d92b86498a2f5f71c8e2643d5 # v1.4.3 | ||
path: diff-so-fancy | ||
|
||
- name: Install diff-so-fancy | ||
run: echo "$GITHUB_WORKSPACE/diff-so-fancy" >> $GITHUB_PATH | ||
|
||
- name: Setup NodeJS | ||
uses: ./.github/actions/setup-nodejs | ||
uses: ./chainlink/.github/actions/setup-nodejs | ||
with: | ||
base-path: "chainlink" | ||
prod: "true" | ||
|
||
- name: Setup Go | ||
uses: ./.github/actions/setup-go | ||
uses: ./chainlink/.github/actions/setup-go | ||
with: | ||
go-version-file: "chainlink/go.mod" | ||
|
||
- name: Run native compile and generate wrappers | ||
working-directory: ./chainlink/contracts | ||
run: make wrappers-all | ||
working-directory: ./contracts | ||
|
||
- name: Verify local solc binaries | ||
working-directory: chainlink | ||
run: ./tools/ci/check_solc_hashes | ||
|
||
- name: Check if Go solidity wrappers are updated | ||
if: ${{ needs.changes.outputs.changes == 'true' }} | ||
working-directory: chainlink | ||
run: | | ||
git add --all | ||
git diff --minimal --color --cached --exit-code | diff-so-fancy | ||
|