This repository has been archived by the owner on Jul 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 858
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### Description Enable the MPT witness generator CI check ### Issue Link ### Type of change Bug fix (non-breaking change which fixes an issue) ### Contents - Run Go build and Go format on MPTWG - Ignore main tests CI run if no change on zkevm-circuits - Ignore MPTWG CI run if no change on MPTWG ### Rationale We want to enable automatic checks on MPTWG
- Loading branch information
1 parent
7449c4f
commit 7526cbd
Showing
3 changed files
with
50 additions
and
34 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,49 @@ | ||
name: MPT Witness Generator Checks | ||
|
||
on: | ||
merge_group: | ||
pull_request: | ||
types: [synchronize, opened, reopened, ready_for_review] | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
skip_check: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
should_skip: ${{ steps.skip_check.outputs.should_skip }} | ||
steps: | ||
- id: skip_check | ||
uses: fkirc/skip-duplicate-actions@v5 | ||
with: | ||
cancel_others: 'true' | ||
concurrent_skipping: 'same_content_newer' | ||
paths: '["mpt-witness-generator/**"]' | ||
|
||
|
||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.20' | ||
|
||
- name: Format | ||
uses: Jerome1337/gofmt-action@v1.0.5 | ||
with: | ||
gofmt-path: './mpt-witness-generator' | ||
gofmt-flags: '-l -d' | ||
|
||
- name: Build | ||
working-directory: ./mpt-witness-generator | ||
run: go build -v ./... | ||
|
||
- name: Test | ||
working-directory: ./mpt-witness-generator | ||
env: | ||
NO_GETH: true | ||
run: go test -v ./... |
This file was deleted.
Oops, something went wrong.