Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Add ci check for gas-estimation package #6407

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ jobs:
- "packages/replica-healthcheck/node_modules"
- "packages/sdk/node_modules"
- "packages/contracts-ts/node_modules"
- "packages/fee-estimation/node_modules"
- run:
name: print forge version
command: forge --version
Expand Down Expand Up @@ -712,6 +713,31 @@ jobs:
name: Upload coverage
command: codecov --verbose --clean --flags <<parameters.coverage_flag>>

fee-estimation:
docker:
- image: us-docker.pkg.dev/oplabs-tools-artifacts/images/ci-builder:latest
resource_class: large
steps:
- checkout
- attach_workspace: { at: "." }
- restore_cache:
name: Restore pnpm Package Cache
keys:
- pnpm-packages-v2-{{ checksum "pnpm.lock.yaml" }}
- install_node_modules:
name: Install node modules
command: pnpm install --frozen-lockfile --prefer-offline
- check-changed:
patterns: sdk,contracts-bedrock,contracts,contracts-ts,fee-estimation
- run:
name: Typecheck
command: pnpm nx typecheck
working_directory: packages/fee-estimation
- run:
name: Lint
command: pnpm nx lint
working_directory: packages/fee-estimation

contracts-ts-tests:
docker:
- image: us-docker.pkg.dev/oplabs-tools-artifacts/images/ci-builder:latest
Expand Down Expand Up @@ -1369,6 +1395,13 @@ workflows:
dependencies: '(contracts-bedrock|contracts-ts)'
requires:
- pnpm-monorepo
- js-lint-test:
name: fee-estimation
coverage_flag: fee-estimation-tests
package_name: fee-estimation
dependencies: '(contracts-bedrock|contracts-ts|fee-estimation|contracts-periphery)'
requires:
- pnpm-monorepo
- js-lint-test:
name: sdk-next-tests
coverage_flag: sdk-next-tests
Expand Down