This commit is contained in:
Sander Declerck 2026-05-22 16:55:00 +08:00 committed by GitHub
commit fcb0f69631
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 18 additions and 7 deletions

View file

@ -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
View file

@ -0,0 +1,2 @@
node_modules
Dockerfile

View file

@ -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

View file

@ -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");