mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Add e2e tests to workspace
This commit is contained in:
parent
7673d32912
commit
8d015fdca3
4 changed files with 14 additions and 12 deletions
9
.github/workflows/test-on-pr.yml
vendored
9
.github/workflows/test-on-pr.yml
vendored
|
|
@ -33,9 +33,6 @@ jobs:
|
|||
name: Run E2E tests
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
working-directory: "test/e2e"
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
|
|
@ -46,11 +43,11 @@ jobs:
|
|||
with:
|
||||
node-version: "lts/*"
|
||||
|
||||
- name: Install dependencies
|
||||
- name: Install dependencies (root)
|
||||
run: npm ci
|
||||
|
||||
- name: Run unit tests
|
||||
run: npm test
|
||||
- name: Run E2E tests
|
||||
run: npm run test --workspace=test/e2e
|
||||
|
||||
- name: Clean up Docker resources
|
||||
if: always()
|
||||
|
|
|
|||
12
package.json
12
package.json
|
|
@ -1,10 +1,14 @@
|
|||
{
|
||||
"name": "aikido-safe-chain-workspace",
|
||||
"name": "aikido-safe-chain-workspace",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"workspaces": ["packages/*"],
|
||||
"workspaces": [
|
||||
"packages/*",
|
||||
"test/e2e"
|
||||
],
|
||||
"scripts": {
|
||||
"test": "npm run test --workspace=packages/safe-chain",
|
||||
"test:e2e": "npm run test --workspace=test/e2e",
|
||||
"lint": "npm run lint --workspace=packages/safe-chain"
|
||||
},
|
||||
"repository": {
|
||||
|
|
@ -16,11 +20,11 @@
|
|||
"devDependencies": {
|
||||
"@eslint/js": "^9.26.0",
|
||||
"eslint": "^9.26.0",
|
||||
"eslint-plugin-import": "^2.31.0",
|
||||
"eslint-plugin-import": "^2.31.0",
|
||||
"globals": "^16.1.0",
|
||||
"typescript-eslint": "^8.32.0"
|
||||
},
|
||||
"overrides": {
|
||||
"brace-expansion@<=2.0.2": "2.0.2"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,13 +6,13 @@ ENV CI=true
|
|||
WORKDIR /app
|
||||
|
||||
# Copy package files first for better caching
|
||||
COPY package*.json ./
|
||||
COPY packages/safe-chain/package*.json ./
|
||||
|
||||
# Install dependencies
|
||||
RUN npm install
|
||||
|
||||
# Copy the rest of the application
|
||||
COPY . .
|
||||
COPY packages/safe-chain ./
|
||||
|
||||
# Build the application
|
||||
RUN npm --no-git-tag-version version 1.0.0 --allow-same-version
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"name": "@aikidosec/safe-chain-e2e-tests",
|
||||
"private": true,
|
||||
"version": "1.0.0",
|
||||
"description": "End-to-end tests for the Aikido Safe Chain",
|
||||
"scripts": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue