Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
adc67e15
Commit
adc67e15
authored
Aug 07, 2023
by
Will Cory
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pnpm-fetch
parent
5efedaaf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
67 additions
and
12 deletions
+67
-12
config.yml
.circleci/config.yml
+67
-12
No files found.
.circleci/config.yml
View file @
adc67e15
...
@@ -115,20 +115,23 @@ jobs:
...
@@ -115,20 +115,23 @@ jobs:
name
:
Restore PNPM Package Cache
name
:
Restore PNPM Package Cache
keys
:
keys
:
-
pnpm-packages-v2-{{ checksum "pnpm-lock.yaml" }}
-
pnpm-packages-v2-{{ checksum "pnpm-lock.yaml" }}
-
run
:
# Fetch node_modules into the pnpm store
name
:
Install dependencies
# This will cache node_modules based on pnpm-lock so other steps can instantly install them with `pnpm install --prefer-offline`
command
:
pnpm install --frozen-lockfile
# --prefer-offline installs node_modules instantly by just reading from cache if it exists rather than fetching from network
# when installing node_modules pnpm simply adds symlinks instead of copying the files which is why it is pretty much instant to run --prefer-offline
# this allows a caching strategy of only checking pnpm-lockfile so we don't have to keep it in sync with our packages
# For more information see https://pnpm.io/cli/fetch
-
run
:
name
:
Fetch dependencies
command
:
pnpm fetch --frozen-lockfile --prefer-offline
-
save_cache
:
-
save_cache
:
name
:
Save PNPM Package Cache
name
:
Save PNPM Package Cache
key
:
pnpm-packages-v2-{{ checksum "pnpm-lock.yaml" }}
key
:
pnpm-packages-v2-{{ checksum "pnpm-lock.yaml" }}
paths
:
paths
:
-
"
node_modules"
-
"
node_modules"
-
"
packages/chain-mon/node_modules"
-
run
:
-
"
packages/common-ts/node_modules"
name
:
Install dependencies
-
"
packages/contracts-bedrock/node_modules"
command
:
pnpm install --frozen-lockfile --offline
-
"
packages/core-utils/node_modules"
-
"
packages/sdk/node_modules"
-
"
packages/contracts-ts/node_modules"
-
run
:
-
run
:
name
:
print forge version
name
:
print forge version
command
:
forge --version
command
:
forge --version
...
@@ -327,6 +330,10 @@ jobs:
...
@@ -327,6 +330,10 @@ jobs:
name
:
print forge version
name
:
print forge version
command
:
forge --version
command
:
forge --version
working_directory
:
packages/contracts-bedrock
working_directory
:
packages/contracts-bedrock
# populate node modules from the cache
-
run
:
name
:
Install dependencies
command
:
pnpm install --frozen-lockfile --prefer-offline
-
run
:
-
run
:
name
:
test and generate coverage
name
:
test and generate coverage
command
:
pnpm coverage:lcov
command
:
pnpm coverage:lcov
...
@@ -348,6 +355,10 @@ jobs:
...
@@ -348,6 +355,10 @@ jobs:
-
checkout
-
checkout
-
check-changed
:
-
check-changed
:
patterns
:
contracts-bedrock,op-node
patterns
:
contracts-bedrock,op-node
# populate node modules from the cache
-
run
:
name
:
Install dependencies
command
:
pnpm install --frozen-lockfile --prefer-offline
-
run
:
-
run
:
name
:
print forge version
name
:
print forge version
command
:
forge --version
command
:
forge --version
...
@@ -372,6 +383,10 @@ jobs:
...
@@ -372,6 +383,10 @@ jobs:
-
pnpm-packages-v2-{{ checksum "pnpm-lock.yaml" }}
-
pnpm-packages-v2-{{ checksum "pnpm-lock.yaml" }}
-
check-changed
:
-
check-changed
:
patterns
:
contracts-bedrock,op-node
patterns
:
contracts-bedrock,op-node
# populate node modules from the cache
-
run
:
name
:
Install dependencies
command
:
pnpm install --frozen-lockfile --prefer-offline
-
run
:
-
run
:
name
:
build contracts
name
:
build contracts
command
:
pnpm build
command
:
pnpm build
...
@@ -454,6 +469,10 @@ jobs:
...
@@ -454,6 +469,10 @@ jobs:
-
checkout
-
checkout
-
check-changed
:
-
check-changed
:
patterns
:
contracts-bedrock
patterns
:
contracts-bedrock
# populate node modules from the cache
-
run
:
name
:
Install dependencies
command
:
pnpm install --frozen-lockfile --prefer-offline
-
run
:
-
run
:
name
:
slither
name
:
slither
command
:
|
command
:
|
...
@@ -469,6 +488,10 @@ jobs:
...
@@ -469,6 +488,10 @@ jobs:
name
:
Restore PNPM Package Cache
name
:
Restore PNPM Package Cache
keys
:
keys
:
-
pnpm-packages-v2-{{ checksum "pnpm-lock.yaml" }}
-
pnpm-packages-v2-{{ checksum "pnpm-lock.yaml" }}
# populate node modules from the cache
-
run
:
name
:
Install dependencies
command
:
pnpm install --frozen-lockfile --prefer-offline
-
check-changed
:
-
check-changed
:
patterns
:
contracts-bedrock
patterns
:
contracts-bedrock
-
run
:
-
run
:
...
@@ -484,6 +507,10 @@ jobs:
...
@@ -484,6 +507,10 @@ jobs:
-
attach_workspace
:
{
at
:
"
."
}
-
attach_workspace
:
{
at
:
"
."
}
-
check-changed
:
-
check-changed
:
patterns
:
contracts-bedrock
patterns
:
contracts-bedrock
# populate node modules from the cache
-
run
:
name
:
Install dependencies
command
:
pnpm install --frozen-lockfile --prefer-offline
-
run
:
-
run
:
name
:
Compile with metadata hash
name
:
Compile with metadata hash
command
:
pnpm clean && pnpm build:with-metadata
command
:
pnpm clean && pnpm build:with-metadata
...
@@ -515,6 +542,10 @@ jobs:
...
@@ -515,6 +542,10 @@ jobs:
-
pnpm-packages-v2-{{ checksum "pnpm-lock.yaml" }}
-
pnpm-packages-v2-{{ checksum "pnpm-lock.yaml" }}
-
check-changed
:
-
check-changed
:
patterns
:
contracts-bedrock
patterns
:
contracts-bedrock
# populate node modules from the cache
-
run
:
name
:
Install dependencies
command
:
pnpm install --frozen-lockfile --prefer-offline
-
run
:
-
run
:
name
:
Echidna Fuzz <<parameters.echidna_target>>
name
:
Echidna Fuzz <<parameters.echidna_target>>
command
:
pnpm echidna:<<parameters.echidna_target>>
command
:
pnpm echidna:<<parameters.echidna_target>>
...
@@ -527,6 +558,10 @@ jobs:
...
@@ -527,6 +558,10 @@ jobs:
resource_class
:
large
resource_class
:
large
steps
:
steps
:
-
checkout
-
checkout
# populate node modules from the cache
-
run
:
name
:
Install dependencies
command
:
pnpm install --frozen-lockfile --prefer-offline
-
run
:
-
run
:
name
:
check go bindings
name
:
check go bindings
command
:
make && git diff --exit-code
command
:
make && git diff --exit-code
...
@@ -556,6 +591,10 @@ jobs:
...
@@ -556,6 +591,10 @@ jobs:
-
pnpm-packages-v2-{{ checksum "pnpm-lock.yaml" }}
-
pnpm-packages-v2-{{ checksum "pnpm-lock.yaml" }}
-
check-changed
:
-
check-changed
:
patterns
:
<<parameters.package_name>>,<<parameters.dependencies>>
patterns
:
<<parameters.package_name>>,<<parameters.dependencies>>
# populate node modules from the cache
-
run
:
name
:
Install dependencies
command
:
pnpm install --frozen-lockfile --prefer-offline
-
run
:
-
run
:
name
:
Lint
name
:
Lint
command
:
pnpm lint && git diff --exit-code
command
:
pnpm lint && git diff --exit-code
...
@@ -581,6 +620,10 @@ jobs:
...
@@ -581,6 +620,10 @@ jobs:
-
pnpm-packages-v2-{{ checksum "pnpm.lock.yaml" }}
-
pnpm-packages-v2-{{ checksum "pnpm.lock.yaml" }}
-
check-changed
:
-
check-changed
:
patterns
:
sdk,contracts-bedrock,contracts
patterns
:
sdk,contracts-bedrock,contracts
# populate node modules from the cache
-
run
:
name
:
Install dependencies
command
:
pnpm install --frozen-lockfile --prefer-offline
-
run
:
-
run
:
name
:
Check generated and build
name
:
Check generated and build
command
:
pnpm generate:check
command
:
pnpm generate:check
...
@@ -599,6 +642,10 @@ jobs:
...
@@ -599,6 +642,10 @@ jobs:
-
pnpm-packages-v2-{{ checksum "pnpm.lock.yaml" }}
-
pnpm-packages-v2-{{ checksum "pnpm.lock.yaml" }}
-
check-changed
:
-
check-changed
:
patterns
:
sdk,contracts-bedrock,contracts
patterns
:
sdk,contracts-bedrock,contracts
# populate node modules from the cache
-
run
:
name
:
Install dependencies
command
:
pnpm install --frozen-lockfile --prefer-offline
-
run
:
-
run
:
name
:
anvil-l1
name
:
anvil-l1
background
:
true
background
:
true
...
@@ -653,7 +700,7 @@ jobs:
...
@@ -653,7 +700,7 @@ jobs:
npm i yarn@1 --global
npm i yarn@1 --global
-
run
:
-
run
:
name
:
pnpm dev deps
name
:
pnpm dev deps
command
:
pnpm install
command
:
pnpm install
--frozen-lockfile --prefer-offline
-
run
:
-
run
:
name
:
specs toc
name
:
specs toc
command
:
pnpm lint:specs:toc && git diff --exit-code ./specs
command
:
pnpm lint:specs:toc && git diff --exit-code ./specs
...
@@ -673,7 +720,7 @@ jobs:
...
@@ -673,7 +720,7 @@ jobs:
-
run
:
-
run
:
name
:
Install node_modules
name
:
Install node_modules
command
:
|
command
:
|
pnpm install
pnpm install
--frozen-lockfile --prefer-offline
-
run
:
-
run
:
name
:
Lint check
name
:
Lint check
command
:
|
command
:
|
...
@@ -747,6 +794,10 @@ jobs:
...
@@ -747,6 +794,10 @@ jobs:
-
pnpm-packages-v2-{{ checksum "pnpm-lock.yaml" }}
-
pnpm-packages-v2-{{ checksum "pnpm-lock.yaml" }}
-
check-changed
:
-
check-changed
:
patterns
:
packages
patterns
:
packages
# populate node modules from the cache
-
run
:
name
:
Install dependencies
command
:
pnpm install --frozen-lockfile --prefer-offline
-
run
:
-
run
:
name
:
Check common-ts
name
:
Check common-ts
command
:
npx depcheck
command
:
npx depcheck
...
@@ -866,6 +917,10 @@ jobs:
...
@@ -866,6 +917,10 @@ jobs:
-
checkout
-
checkout
-
check-changed
:
-
check-changed
:
patterns
:
<<parameters.working_directory>>,<<parameters.dependencies>>
patterns
:
<<parameters.working_directory>>,<<parameters.dependencies>>
# populate node modules from the cache
-
run
:
name
:
Install dependencies
command
:
pnpm install --frozen-lockfile --prefer-offline
-
run
:
-
run
:
name
:
Lint
name
:
Lint
command
:
golangci-lint run -E goimports,sqlclosecheck,bodyclose,asciicheck,misspell,errorlint --timeout 2m -e "errors.As" -e "errors.Is" ./...
command
:
golangci-lint run -E goimports,sqlclosecheck,bodyclose,asciicheck,misspell,errorlint --timeout 2m -e "errors.As" -e "errors.Is" ./...
...
@@ -975,7 +1030,7 @@ jobs:
...
@@ -975,7 +1030,7 @@ jobs:
-
run
:
-
run
:
name
:
Install and build
name
:
Install and build
command
:
|
command
:
|
pnpm install && pnpm build
pnpm install
--frozen-lockfile --prefer-offline
&& pnpm build
-
run
:
-
run
:
name
:
generate cannon prestate
name
:
generate cannon prestate
command
:
make cannon-prestate
command
:
make cannon-prestate
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment