mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Merge 28ee123412 into 9453c8c0c9
This commit is contained in:
commit
fcb0f69631
4 changed files with 18 additions and 7 deletions
2
test/e2e/.dockerignore
Normal file
2
test/e2e/.dockerignore
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
node_modules
|
||||
Dockerfile
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
FROM node:24-bookworm as builder
|
||||
FROM node:24-bookworm AS builder
|
||||
|
||||
ENV CI=true
|
||||
|
||||
|
|
@ -6,17 +6,20 @@ ENV CI=true
|
|||
WORKDIR /app
|
||||
|
||||
# Copy package files first for better caching
|
||||
COPY packages/safe-chain/package*.json ./
|
||||
COPY packages/safe-chain/package.json ./packages/safe-chain/package.json
|
||||
COPY ./package.json ./package.json
|
||||
COPY ./npm-shrinkwrap.json ./
|
||||
|
||||
# Install dependencies
|
||||
RUN npm install
|
||||
RUN npm ci
|
||||
|
||||
# Copy the rest of the application
|
||||
COPY packages/safe-chain ./
|
||||
COPY packages/safe-chain ./packages/safe-chain
|
||||
|
||||
# Build the application
|
||||
RUN npm --no-git-tag-version version 1.0.0 --allow-same-version
|
||||
RUN npm pack
|
||||
RUN npm --no-git-tag-version version 1.0.0 --allow-same-version --workspace=packages/safe-chain
|
||||
RUN cp ./npm-shrinkwrap.json packages/safe-chain/
|
||||
RUN npm pack --workspace=packages/safe-chain
|
||||
|
||||
FROM buildpack-deps:trixie
|
||||
|
||||
|
|
|
|||
|
|
@ -25,7 +25,8 @@ describe("E2E: safe-chain setup command", () => {
|
|||
it(`safe-chain setup wraps npm command after installation for ${shell}`, async () => {
|
||||
// setting up the container
|
||||
const installationShell = await container.openShell(shell);
|
||||
await installationShell.runCommand("safe-chain setup");
|
||||
const out = await installationShell.runCommand("safe-chain setup");
|
||||
console.log(out.output);
|
||||
|
||||
const projectShell = await container.openShell(shell);
|
||||
await projectShell.runCommand("cd /testapp");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue