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
5
.github/workflows/test-on-pr.yml
vendored
5
.github/workflows/test-on-pr.yml
vendored
|
|
@ -93,6 +93,11 @@ jobs:
|
||||||
npm_version: "latest"
|
npm_version: "latest"
|
||||||
yarn_version: "latest"
|
yarn_version: "latest"
|
||||||
pnpm_version: "latest"
|
pnpm_version: "latest"
|
||||||
|
# EOL compatibility - Node 16 (EOL sept 2023)
|
||||||
|
- node_version: "16"
|
||||||
|
npm_version: "8.0.0"
|
||||||
|
yarn_version: "1.22.22"
|
||||||
|
pnpm_version: "8.0.0"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
|
|
|
||||||
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
|
ENV CI=true
|
||||||
|
|
||||||
|
|
@ -6,17 +6,20 @@ ENV CI=true
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy package files first for better caching
|
# 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
|
# Install dependencies
|
||||||
RUN npm install
|
RUN npm ci
|
||||||
|
|
||||||
# Copy the rest of the application
|
# Copy the rest of the application
|
||||||
COPY packages/safe-chain ./
|
COPY packages/safe-chain ./packages/safe-chain
|
||||||
|
|
||||||
# Build the application
|
# Build the application
|
||||||
RUN npm --no-git-tag-version version 1.0.0 --allow-same-version
|
RUN npm --no-git-tag-version version 1.0.0 --allow-same-version --workspace=packages/safe-chain
|
||||||
RUN npm pack
|
RUN cp ./npm-shrinkwrap.json packages/safe-chain/
|
||||||
|
RUN npm pack --workspace=packages/safe-chain
|
||||||
|
|
||||||
FROM buildpack-deps:trixie
|
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 () => {
|
it(`safe-chain setup wraps npm command after installation for ${shell}`, async () => {
|
||||||
// setting up the container
|
// setting up the container
|
||||||
const installationShell = await container.openShell(shell);
|
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);
|
const projectShell = await container.openShell(shell);
|
||||||
await projectShell.runCommand("cd /testapp");
|
await projectShell.runCommand("cd /testapp");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue