Skip to content

Commit

Permalink
fixing .env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelangarano committed Sep 12, 2023
1 parent 917ab2c commit be0620c
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 24 deletions.
12 changes: 6 additions & 6 deletions e2e/cypress-12-demo/scripts/files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import { run } from "cypress-cloud";
import fs from "fs";

(async function runTests() {
const projectId = process.env.CURRENTS_PROJECT_ID || "2cI1I5";
const recordKey = process.env.CURRENTS_RECORD_KEY || "YakSabgBLb7D40nZ";
const apiKey =
process.env.CURRENTS_API_KEY ||
"YpYIAerb1rWuOFrvf7ciK8Za8koKgrtRfoDPboQUOjScnBv91m4qAXSDb8Rb57m9";
const apiUrl = "https://api.currents.dev/v1/runs/";
const projectId = process.env.CURRENTS_PROJECT_ID || "projectId";
const recordKey = process.env.CURRENTS_RECORD_KEY || "recordKey";
const apiKey = process.env.CURRENTS_API_KEY || "apiKey";
const apiUrl =
process.env.CURRENTS_RUN_BASE_URL ||
"https://api.currents.dev/v1/runs/";

const ciBuildId = `run-api-smoke-${new Date().toISOString()}`;
const result: any = await run({
Expand Down
12 changes: 6 additions & 6 deletions e2e/cypress-12-demo/scripts/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,8 @@ function testEachResults(results: ComparisonResult[]) {
}

async function runTests() {
const projectId = process.env.CURRENTS_PROJECT_ID || "2cI1I5";
const recordKey = process.env.CURRENTS_RECORD_KEY || "YakSabgBLb7D40nZ";
const projectId = process.env.CURRENTS_PROJECT_ID || "projectId";
const recordKey = process.env.CURRENTS_RECORD_KEY || "recordKey";

const ciBuildId = `run-api-smoke-${new Date().toISOString()}`;
const result: any = await run({
Expand All @@ -387,10 +387,10 @@ async function runTests() {
}

async function getApiData(runUrl: string) {
const apiKey =
process.env.CURRENTS_API_KEY ||
"YpYIAerb1rWuOFrvf7ciK8Za8koKgrtRfoDPboQUOjScnBv91m4qAXSDb8Rb57m9";
const apiUrl = "https://api.currents.dev/v1/runs/";
const apiKey = process.env.CURRENTS_API_KEY || "apiKey";
const apiUrl =
process.env.CURRENTS_RUN_BASE_URL ||
"https://api.currents.dev/v1/runs/";

const headers = new Headers({
Authorization: `Bearer ${apiKey}`,
Expand Down
12 changes: 6 additions & 6 deletions e2e/cypress-13-demo/scripts/files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import { run } from "cypress-cloud";
import fs from "fs";

(async function runTests() {
const projectId = process.env.CURRENTS_PROJECT_ID || "2cI1I5";
const recordKey = process.env.CURRENTS_RECORD_KEY || "YakSabgBLb7D40nZ";
const apiKey =
process.env.CURRENTS_API_KEY ||
"YpYIAerb1rWuOFrvf7ciK8Za8koKgrtRfoDPboQUOjScnBv91m4qAXSDb8Rb57m9";
const apiUrl = "https://api.currents.dev/v1/runs/";
const projectId = process.env.CURRENTS_PROJECT_ID || "projectId";
const recordKey = process.env.CURRENTS_RECORD_KEY || "recordKey";
const apiKey = process.env.CURRENTS_API_KEY || "apiKey";
const apiUrl =
process.env.CURRENTS_RUN_BASE_URL ||
"https://api.currents.dev/v1/runs/";

const ciBuildId = `run-api-smoke-${new Date().toISOString()}`;
const result: any = await run({
Expand Down
12 changes: 6 additions & 6 deletions e2e/cypress-13-demo/scripts/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -428,8 +428,8 @@ function testEachResults(results: ComparisonResult[]): string[] {
}

async function runTests() {
const projectId = process.env.CURRENTS_PROJECT_ID || "2cI1I5";
const recordKey = process.env.CURRENTS_RECORD_KEY || "YakSabgBLb7D40nZ";
const projectId = process.env.CURRENTS_PROJECT_ID || "projectId";
const recordKey = process.env.CURRENTS_RECORD_KEY || "recordKey";

const ciBuildId = `run-api-smoke-${new Date().toISOString()}`;
const result: any = await run({
Expand All @@ -443,10 +443,10 @@ async function runTests() {
}

async function getApiData(runUrl: string) {
const apiKey =
process.env.CURRENTS_API_KEY ||
"YpYIAerb1rWuOFrvf7ciK8Za8koKgrtRfoDPboQUOjScnBv91m4qAXSDb8Rb57m9";
const apiUrl = "https://api.currents.dev/v1/runs/";
const apiKey = process.env.CURRENTS_API_KEY || "apiKey";
const apiUrl =
process.env.CURRENTS_RUN_BASE_URL ||
"https://api.currents.dev/v1/runs/";

const headers = new Headers({
Authorization: `Bearer ${apiKey}`,
Expand Down
1 change: 1 addition & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"CURRENTS_API_URL",
"CURRENTS_RECORD_KEY",
"CURRENTS_API_KEY",
"CURRENTS_RUN_BASE_URL",
"TF_BUILD",
"TF_BUILD_BUILDNUMBER",
"AZURE_HTTP_USER_AGENT",
Expand Down

0 comments on commit be0620c

Please sign in to comment.