@dword-design/base 15.2.0 → 15.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -14,7 +14,10 @@ export default async function (options) {
|
|
|
14
14
|
const envSchemaPath = findUpSync(".env.schema.json", {
|
|
15
15
|
cwd: this.cwd
|
|
16
16
|
});
|
|
17
|
-
const envVariableNames = Object.keys(
|
|
17
|
+
const envVariableNames = Object.keys({
|
|
18
|
+
CI: true,
|
|
19
|
+
...(envSchemaPath ? await fs.readJson(envSchemaPath) : {})
|
|
20
|
+
}).map(name => constantCase(name));
|
|
18
21
|
const userInfo = getUserInfo();
|
|
19
22
|
try {
|
|
20
23
|
return await execa("docker", ["run", "--rm", ...envVariableNames.filter(name => process.env[name] !== void 0).flatMap(name => ["--env", `${name}=${process.env[name]}`]), "-v", `${this.cwd}:/app`, "-v", `${volumeName}:/app/node_modules`, "dworddesign/testing:latest", "bash", "-c", ["pnpm install --frozen-lockfile", "&&", "pnpm test:raw", ...(options.updateSnapshots ? [" --update-snapshots"] : []), ...options.patterns.map(pattern => `"${pattern}"`), ...(options.grep ? [`-g "${options.grep}"`] : [])].join(" ")], {
|
|
@@ -19,7 +19,7 @@ export default function () {
|
|
|
19
19
|
const packageName = parsePackagejsonName(this.packageConfig.name).fullName;
|
|
20
20
|
return [...(this.config.doppler ? [{
|
|
21
21
|
name: "Install Doppler CLI",
|
|
22
|
-
uses: gitHubAction`
|
|
22
|
+
uses: gitHubAction`dword-design/doppler-cli-action-fork@fork`
|
|
23
23
|
}] : []), {
|
|
24
24
|
env: {
|
|
25
25
|
...(this.config.doppler ? {
|