Skip to content

Commit

Permalink
fix: solidity native compile diff checks (#15312)
Browse files Browse the repository at this point in the history
* fix: solidity native compile diff checks

* fix: checkout repos side-by-side
  • Loading branch information
erikburt authored Nov 20, 2024
1 parent 2596452 commit df32c85
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/solidity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit df32c85

Please sign in to comment.