Change path

This commit is contained in:
Sidharth Vinod
2024-01-26 01:15:43 +05:30
parent 441deaffc9
commit 6702d41840
2 changed files with 8 additions and 8 deletions

View File

@@ -205,12 +205,12 @@ jobs:
id: runtime id: runtime
if: ${{ needs.e2e.result != 'failure' && github.event_name == 'pull_request' }} if: ${{ needs.e2e.result != 'failure' && github.event_name == 'pull_request' }}
run: | run: |
ls -l cypress/snapshots/runtimes ls -l ./snapshots/runtimes
mv cypress/snapshots/runtimes cypress/snapshots/runtimes/head mv ./snapshots/runtimes ./snapshots/runtimes/head
ls -l cypress/snapshots/runtimes ls -l ./snapshots/runtimes
ls -l cypress/snapshots/runtimes/base ls -l ./snapshots/runtimes/base
ls -l cypress/snapshots/runtimes/head ls -l ./snapshots/runtimes/head
tree cypress/snapshots/runtimes tree ./snapshots/runtimes
npm config set ignore-scripts true npm config set ignore-scripts true
pnpm install --frozen-lockfile pnpm install --frozen-lockfile
{ {

View File

@@ -56,8 +56,8 @@ const percentageDifference = (
}; };
const main = async () => { const main = async () => {
const oldStats = await readStats('./cypress/snapshots/runtimes/base/**/*.csv'); const oldStats = await readStats('./snapshots/runtimes/base/**/*.csv');
const newStats = await readStats('./cypress/snapshots/runtimes/head/**/*.csv'); const newStats = await readStats('./snapshots/runtimes/head/**/*.csv');
const fullData: string[][] = []; const fullData: string[][] = [];
const changed: string[][] = []; const changed: string[][] = [];
for (const [fileName, runtimes] of Object.entries(newStats)) { for (const [fileName, runtimes] of Object.entries(newStats)) {