Skip to content

Commit

Permalink
chore: add npm install step for tests with a frontend canister
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason I committed Nov 6, 2024
1 parent 2a17233 commit 1d5f2c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ jobs:
time dfx new smoke
cd smoke
time dfx start --background
time npm install
time dfx deploy
time dfx canister call smoke_backend greet '("fire")'
time curl --fail http://localhost:"$(dfx info webserver-port)"/sample-asset.txt?canisterId=$(dfx canister id smoke_frontend)
Expand Down Expand Up @@ -207,6 +208,7 @@ jobs:
dfx new e2e_project
cd e2e_project
dfx start --background --clean
npm install
dfx deploy 2>&1 | tee deploy.log
echo FRONTEND_URL=$(grep "_frontend:" deploy.log | grep -Eo "(http|https)://[a-zA-Z0-9./?=_&%:-]*") >> $GITHUB_ENV
echo CANDID_URL=$(grep "_backend:" deploy.log | grep -Eo "(http|https)://[a-zA-Z0-9./?=_&%:-]*") >> $GITHUB_ENV
Expand Down

0 comments on commit 1d5f2c5

Please sign in to comment.