mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-08-07 07:16:17 +00:00
55f883a566
Trivy / Trivy Scan (push) Has been cancelled
Build / Build and Test msrv (push) Has been cancelled
Build / Build and Test rust-toolchain (push) Has been cancelled
Check templates / Validate docker templates (push) Has been cancelled
Hadolint / Validate Dockerfile syntax (push) Has been cancelled
Code Spell Checking / Run typos spell checking (push) Has been cancelled
Security Analysis with zizmor / Run zizmor (push) Has been cancelled
Release / Build Vaultwarden containers (amd64, alpine) (push) Has been cancelled
Release / Build Vaultwarden containers (amd64, debian) (push) Has been cancelled
Release / Build Vaultwarden containers (arm/v6, alpine) (push) Has been cancelled
Release / Build Vaultwarden containers (arm/v6, debian) (push) Has been cancelled
Release / Build Vaultwarden containers (arm/v7, alpine) (push) Has been cancelled
Release / Build Vaultwarden containers (arm/v7, debian) (push) Has been cancelled
Release / Build Vaultwarden containers (arm64, alpine) (push) Has been cancelled
Release / Build Vaultwarden containers (arm64, debian) (push) Has been cancelled
Release / Merge manifests (alpine) (push) Has been cancelled
Release / Merge manifests (debian) (push) Has been cancelled
* Config server setting suppressOnboardingInterstitials * Backport fix playwright tests --------- Co-authored-by: Timshel <timshel@users.noreply.github.com>
23 lines
810 B
TypeScript
23 lines
810 B
TypeScript
import { type FullConfig } from '@playwright/test';
|
|
import { execSync } from 'node:child_process';
|
|
import fs from 'fs';
|
|
|
|
const utils = require('./global-utils');
|
|
|
|
utils.loadEnv();
|
|
|
|
async function globalSetup(config: FullConfig) {
|
|
// Are we running in docker and the project is mounted ?
|
|
const path = (fs.existsSync("/project/playwright/playwright.config.ts") ? "/project/playwright" : ".");
|
|
execSync(`docker compose --project-directory ${path} --profile playwright --env-file test.env build VaultwardenPrebuild`, {
|
|
env: { ...process.env },
|
|
stdio: "inherit"
|
|
});
|
|
execSync(`docker compose --project-directory ${path} --profile playwright --env-file test.env build Vaultwarden`, {
|
|
env: { ...process.env },
|
|
stdio: "inherit"
|
|
});
|
|
}
|
|
|
|
export default globalSetup;
|