Skip to content

Commit

Permalink
feat(#1): update memory-leak-testing.yml and remove variable
Browse files Browse the repository at this point in the history
  • Loading branch information
t.chelebi committed Sep 4, 2023
1 parent 2fe88da commit 6374e93
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 0 additions & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
WEBSITE_URL = 'http://localhost:3000'
LOCALHOST = 'localhost'
IPv4_PORT = 'http://127.0.0.1:3000'
8 changes: 5 additions & 3 deletions .github/workflows/memory-leak-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ jobs:
steps.cache-pnpm-dependencies.outputs.cache-hit != 'true' ||
steps.cache-pnpm-packages.outputs.cache-hit != 'true'
- name: Run dev and memory leak testing
run: |
pnpm run dev & memlab run -v --scenario ./memlab/memoryLeakTest.js
- name: Run dev
run: pnpm run dev

- name: Run memlab
run: pnpm run test:memory-leak
env:
CI: true
2 changes: 1 addition & 1 deletion memlab/memoryLeakTest.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require('dotenv').config();

function url() {
return process.env.IPv4_PORT;
return process.env.WEBSITE_URL;
}

async function action(page) {
Expand Down

0 comments on commit 6374e93

Please sign in to comment.