-
Notifications
You must be signed in to change notification settings - Fork 357
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lint fix + move gas bound caller to separate file
- Loading branch information
1 parent
2c1c688
commit 6afb3ab
Showing
8 changed files
with
104 additions
and
49 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,92 @@ | ||
name: GasBoundCaller CI | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout the repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.18.0 | ||
cache: yarn | ||
|
||
- name: Install dependencies | ||
run: yarn | ||
|
||
- name: Build L1 artifacts | ||
run: yarn gas-bound-caller build | ||
|
||
- name: Check the correcntess of the canonical bytecode | ||
run: yarn gas-bound-caller calculate-canonical-bytecode:check | ||
|
||
- name: Create cache | ||
uses: actions/cache/save@v3 | ||
with: | ||
key: artifacts-gas-bound-caller-${{ github.sha }} | ||
path: | | ||
gas-bound-caller/artifacts-zk | ||
gas-bound-caller/cache-zk | ||
gas-bound-caller/typechain | ||
lint: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout the repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.18.0 | ||
cache: yarn | ||
|
||
- name: Install dependencies | ||
run: yarn | ||
|
||
- name: Lint | ||
run: yarn lint:check | ||
|
||
test: | ||
needs: [build, lint] | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout the repository | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.18.0 | ||
cache: yarn | ||
|
||
- name: Install dependencies | ||
run: yarn | ||
|
||
- name: Restore artifacts cache | ||
uses: actions/cache/restore@v3 | ||
with: | ||
fail-on-cache-miss: true | ||
key: artifacts-gas-bound-caller-${{ github.sha }} | ||
path: | | ||
gas-bound-caller/artifacts-zk | ||
gas-bound-caller/cache-zk | ||
gas-bound-caller/typechain | ||
- name: Use era-test-node for testing | ||
uses: dutterbutter/[email protected] | ||
with: | ||
releaseTag: v0.0.1-vm1.5.0 | ||
|
||
- name: Run tests | ||
run: yarn gas-bound-caller test |
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 |
---|---|---|
|
@@ -94,36 +94,3 @@ jobs: | |
|
||
- name: Run tests | ||
run: yarn l2 test | ||
|
||
gas-bound-caller: | ||
needs: [build, lint] | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout the repository | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.18.0 | ||
cache: yarn | ||
|
||
- name: Install dependencies | ||
run: yarn | ||
|
||
- name: Build GasBoundCaller | ||
run: yarn gas-bound-caller build | ||
|
||
- name: CHeck the correcntess of the canonical bytecode | ||
run: yarn gas-bound-caller calculate-canonical-bytecode:check | ||
|
||
- name: Use era-test-node for testing | ||
uses: dutterbutter/[email protected] | ||
with: | ||
releaseTag: v0.0.1-vm1.5.0 | ||
|
||
- name: Run tests | ||
run: yarn gas-bound-caller test |
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