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:
name
:
Restore PNPM Package Cache
keys
:
-
pnpm-packages-v2-{{ checksum "pnpm-lock.yaml" }}
-
run
:
name
:
Install dependencies
command
:
pnpm install --frozen-lockfile
# Fetch node_modules into the pnpm store
# This will cache node_modules based on pnpm-lock so other steps can instantly install them with `pnpm install --prefer-offline`
# --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
:
name
:
Save PNPM Package Cache
key
:
pnpm-packages-v2-{{ checksum "pnpm-lock.yaml" }}
paths
:
-
"
node_modules"
-
"
packages/chain-mon/node_modules"
-
"
packages/common-ts/node_modules"
-
"
packages/contracts-bedrock/node_modules"
-
"
packages/core-utils/node_modules"
-
"
packages/sdk/node_modules"
-
"
packages/contracts-ts/node_modules"
-
run
:
name
:
Install dependencies
command
:
pnpm install --frozen-lockfile --offline
-
run
:
name
:
print forge version
command
:
forge --version
...
...
@@ -327,6 +330,10 @@ jobs:
name
:
print forge version
command
:
forge --version
working_directory
:
packages/contracts-bedrock
# populate node modules from the cache
-
run
:
name
:
Install dependencies
command
:
pnpm install --frozen-lockfile --prefer-offline
-
run
:
name
:
test and generate coverage
command
:
pnpm coverage:lcov
...
...
@@ -348,6 +355,10 @@ jobs:
-
checkout
-
check-changed
:
patterns
:
contracts-bedrock,op-node
# populate node modules from the cache
-
run
:
name
:
Install dependencies
command
:
pnpm install --frozen-lockfile --prefer-offline
-
run
:
name
:
print forge version
command
:
forge --version
...
...
@@ -372,6 +383,10 @@ jobs:
-
pnpm-packages-v2-{{ checksum "pnpm-lock.yaml" }}
-
check-changed
:
patterns
:
contracts-bedrock,op-node
# populate node modules from the cache
-
run
:
name
:
Install dependencies
command
:
pnpm install --frozen-lockfile --prefer-offline
-
run
:
name
:
build contracts
command
:
pnpm build
...
...
@@ -454,6 +469,10 @@ jobs:
-
checkout
-
check-changed
:
patterns
:
contracts-bedrock
# populate node modules from the cache
-
run
:
name
:
Install dependencies
command
:
pnpm install --frozen-lockfile --prefer-offline
-
run
:
name
:
slither
command
:
|
...
...
@@ -469,6 +488,10 @@ jobs:
name
:
Restore PNPM Package Cache
keys
:
-
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
:
patterns
:
contracts-bedrock
-
run
:
...
...
@@ -484,6 +507,10 @@ jobs:
-
attach_workspace
:
{
at
:
"
."
}
-
check-changed
:
patterns
:
contracts-bedrock
# populate node modules from the cache
-
run
:
name
:
Install dependencies
command
:
pnpm install --frozen-lockfile --prefer-offline
-
run
:
name
:
Compile with metadata hash
command
:
pnpm clean && pnpm build:with-metadata
...
...
@@ -515,6 +542,10 @@ jobs:
-
pnpm-packages-v2-{{ checksum "pnpm-lock.yaml" }}
-
check-changed
:
patterns
:
contracts-bedrock
# populate node modules from the cache
-
run
:
name
:
Install dependencies
command
:
pnpm install --frozen-lockfile --prefer-offline
-
run
:
name
:
Echidna Fuzz <<parameters.echidna_target>>
command
:
pnpm echidna:<<parameters.echidna_target>>
...
...
@@ -527,6 +558,10 @@ jobs:
resource_class
:
large
steps
:
-
checkout
# populate node modules from the cache
-
run
:
name
:
Install dependencies
command
:
pnpm install --frozen-lockfile --prefer-offline
-
run
:
name
:
check go bindings
command
:
make && git diff --exit-code
...
...
@@ -556,6 +591,10 @@ jobs:
-
pnpm-packages-v2-{{ checksum "pnpm-lock.yaml" }}
-
check-changed
:
patterns
:
<<parameters.package_name>>,<<parameters.dependencies>>
# populate node modules from the cache
-
run
:
name
:
Install dependencies
command
:
pnpm install --frozen-lockfile --prefer-offline
-
run
:
name
:
Lint
command
:
pnpm lint && git diff --exit-code
...
...
@@ -581,6 +620,10 @@ jobs:
-
pnpm-packages-v2-{{ checksum "pnpm.lock.yaml" }}
-
check-changed
:
patterns
:
sdk,contracts-bedrock,contracts
# populate node modules from the cache
-
run
:
name
:
Install dependencies
command
:
pnpm install --frozen-lockfile --prefer-offline
-
run
:
name
:
Check generated and build
command
:
pnpm generate:check
...
...
@@ -599,6 +642,10 @@ jobs:
-
pnpm-packages-v2-{{ checksum "pnpm.lock.yaml" }}
-
check-changed
:
patterns
:
sdk,contracts-bedrock,contracts
# populate node modules from the cache
-
run
:
name
:
Install dependencies
command
:
pnpm install --frozen-lockfile --prefer-offline
-
run
:
name
:
anvil-l1
background
:
true
...
...
@@ -653,7 +700,7 @@ jobs:
npm i yarn@1 --global
-
run
:
name
:
pnpm dev deps
command
:
pnpm install
command
:
pnpm install
--frozen-lockfile --prefer-offline
-
run
:
name
:
specs toc
command
:
pnpm lint:specs:toc && git diff --exit-code ./specs
...
...
@@ -673,7 +720,7 @@ jobs:
-
run
:
name
:
Install node_modules
command
:
|
pnpm install
pnpm install
--frozen-lockfile --prefer-offline
-
run
:
name
:
Lint check
command
:
|
...
...
@@ -747,6 +794,10 @@ jobs:
-
pnpm-packages-v2-{{ checksum "pnpm-lock.yaml" }}
-
check-changed
:
patterns
:
packages
# populate node modules from the cache
-
run
:
name
:
Install dependencies
command
:
pnpm install --frozen-lockfile --prefer-offline
-
run
:
name
:
Check common-ts
command
:
npx depcheck
...
...
@@ -866,6 +917,10 @@ jobs:
-
checkout
-
check-changed
:
patterns
:
<<parameters.working_directory>>,<<parameters.dependencies>>
# populate node modules from the cache
-
run
:
name
:
Install dependencies
command
:
pnpm install --frozen-lockfile --prefer-offline
-
run
:
name
:
Lint
command
:
golangci-lint run -E goimports,sqlclosecheck,bodyclose,asciicheck,misspell,errorlint --timeout 2m -e "errors.As" -e "errors.Is" ./...
...
...
@@ -975,7 +1030,7 @@ jobs:
-
run
:
name
:
Install and build
command
:
|
pnpm install && pnpm build
pnpm install
--frozen-lockfile --prefer-offline
&& pnpm build
-
run
:
name
:
generate 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