Batch by commit

This commit is contained in:
Sidharth Vinod
2023-07-07 15:56:30 +05:30
parent f0bf6bf574
commit 962ff73fc3
2 changed files with 2 additions and 1 deletions

View File

@@ -45,6 +45,7 @@ jobs:
env: env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
VITEST_COVERAGE: true VITEST_COVERAGE: true
CYPRESS_COMMIT: ${{ github.sha }}
- name: Upload Coverage to Codecov - name: Upload Coverage to Codecov
uses: codecov/codecov-action@v3 uses: codecov/codecov-action@v3
# Run step only pushes to develop and pull_requests # Run step only pushes to develop and pull_requests

View File

@@ -16,7 +16,7 @@ const utf8ToB64 = (str: string): string => {
return window.btoa(decodeURIComponent(encodeURIComponent(str))); return window.btoa(decodeURIComponent(encodeURIComponent(str)));
}; };
const batchId: string = 'mermaid-batch' + new Date().getTime(); const batchId: string = 'mermaid-batch-' + Cypress.env('CYPRESS_COMMIT') || Date.now().toString();
export const mermaidUrl = ( export const mermaidUrl = (
graphStr: string, graphStr: string,