mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Run e2e tests on PR check
This commit is contained in:
parent
c966660a09
commit
af53a8fbb8
5 changed files with 61 additions and 16 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue