Removes `truffle compile` and npm clean install for wormhole dependency.

This speeds up the CI pipeline considerably.
This commit is contained in:
Sebastián Claudio Nale 2023-01-30 18:02:51 -03:00 committed by Joe Howarth
parent f96902d430
commit 89c83235c5
2 changed files with 1 additions and 11 deletions

View File

@ -24,7 +24,6 @@ jobs:
cache: "npm"
cache-dependency-path: |
ethereum/package-lock.json
ethereum/wormhole/ethereum/package-lock.json
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Run forge unit tests
@ -58,7 +57,6 @@ jobs:
cache: "npm"
cache-dependency-path: |
ethereum/package-lock.json
ethereum/wormhole/ethereum/package-lock.json
relayer_engine/package-lock.json
sdk/package-lock.json
- name: Install Foundry
@ -95,7 +93,6 @@ jobs:
cache: "npm"
cache-dependency-path: |
ethereum/package-lock.json
ethereum/wormhole/ethereum/package-lock.json
relayer_engine/package-lock.json
sdk/package-lock.json
- name: Install Foundry

View File

@ -23,18 +23,11 @@ lib/forge-std:
forge install foundry-rs/forge-std@2c7cbfc6fbede6d7c9e6b17afe997e3fdfe22fef --no-git --no-commit
.PHONY: wormhole_dependencies
wormhole_dependencies: wormhole/ethereum/build
wormhole_dependencies: wormhole
wormhole:
git clone --depth 1 --branch feat/batch_vaa_alternative --single-branch https://github.com/wormhole-foundation/wormhole.git
.PHONY: wormhole/ethereum/build
wormhole/ethereum/build: wormhole wormhole/ethereum/node_modules
cd wormhole/ethereum && npm run build && make .env
wormhole/ethereum/node_modules:
cd wormhole/ethereum && npm ci
dependencies: node_modules forge_dependencies wormhole_dependencies
build: dependencies