Run e2e tests on PR check

This commit is contained in:
Sander Declerck 2025-07-30 16:54:57 +02:00
parent c966660a09
commit af53a8fbb8
No known key found for this signature in database
5 changed files with 61 additions and 16 deletions

View file

@ -7,7 +7,6 @@ import assert from "node:assert";
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const projectRoot = path.resolve(__dirname, "../..");
describe("E2E: safe-chain setup command", () => {
const imageName = "safe-chain-e2e-test";
@ -17,8 +16,8 @@ describe("E2E: safe-chain setup command", () => {
before(async () => {
// Build the Docker image for the test environment
try {
execSync(`docker build -t ${imageName} -f test/e2e/Dockerfile .`, {
cwd: projectRoot,
execSync(`docker build -t ${imageName} -f Dockerfile ../../safe-chain`, {
cwd: __dirname,
stdio: "ignore",
});
} catch (error) {