Skip to content

chore: use corepack #1604

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
15 changes: 15 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ references:
POSTGRES_USER: graph-node
POSTGRES_PASSWORD: let-me-in
POSTGRES_DB: graph-node
enable_corepack: &enable_corepack
run:
name: Enable Corepack
command: sudo corepack enable
step_graph_deploy: &step_graph_deploy
name: 'Subgraph deployment and configuration'
working_directory: ~/
Expand All @@ -56,6 +60,7 @@ references:
sleep 1
done
echo Failed waiting for Node initialization && exit 1

jobs:
build:
docker:
Expand All @@ -68,6 +73,7 @@ jobs:
name: Restore Yarn Package Cache
keys:
- yarn-packages-{{ checksum "yarn.lock" }}
- *enable_corepack
- run:
name: Yarn install
command: yarn install --frozen-lockfile --cache-folder ~/.cache/yarn
Expand All @@ -93,6 +99,7 @@ jobs:
steps:
- attach_workspace:
at: *working_directory
- *enable_corepack
- run:
name: Verify format
command: yarn format:check
Expand All @@ -107,6 +114,7 @@ jobs:
steps:
- attach_workspace:
at: *working_directory
- *enable_corepack
- run:
name: 'Test unit'
command: |
Expand Down Expand Up @@ -158,6 +166,7 @@ jobs:
steps:
- attach_workspace:
at: *working_directory
- *enable_corepack
- run:
name: 'Deploy test contract from smart-contracts'
command: 'yarn deploy:contracts'
Expand Down Expand Up @@ -197,6 +206,7 @@ jobs:
steps:
- attach_workspace:
at: *working_directory
- *enable_corepack
- run:
name: 'Deploy test contract from smart-contracts'
command: 'yarn deploy:contracts'
Expand All @@ -220,6 +230,7 @@ jobs:
steps:
- attach_workspace:
at: *working_directory
- *enable_corepack
- run:
name: 'Build usage-examples'
command: 'yarn workspace @requestnetwork/usage-examples run build'
Expand All @@ -233,6 +244,7 @@ jobs:
steps:
- attach_workspace:
at: *working_directory
- *enable_corepack
- run:
name: 'Build toolbox'
command: 'yarn workspace @requestnetwork/toolbox run build'
Expand All @@ -248,6 +260,7 @@ jobs:
steps:
- attach_workspace:
at: *working_directory
- *enable_corepack
- run:
name: 'Deploy test contract from smart-contracts'
command: 'yarn deploy:contracts'
Expand All @@ -274,6 +287,7 @@ jobs:
steps:
- attach_workspace:
at: *working_directory
- *enable_corepack
- run:
name: 'Test payment-processor (hinkal)'
no_output_timeout: 30m
Expand All @@ -290,6 +304,7 @@ jobs:
steps:
- attach_workspace:
at: *working_directory
- *enable_corepack
- run:
name: 'Allow github ssh host'
command: mkdir ~/.ssh; echo 'github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==' >> ~/.ssh/known_hosts
Expand Down
Loading