diff --git a/.github/workflows/deployment_validation.yaml b/.github/workflows/deployment_validation.yaml index f1a94e7..eedb450 100644 --- a/.github/workflows/deployment_validation.yaml +++ b/.github/workflows/deployment_validation.yaml @@ -12,55 +12,8 @@ on: - opened - synchronize - reopened - -jobs: - validate_scratch_deploy: - runs-on: ubuntu-latest - steps: - # Install Salesforce CLI - - name: Install Salesforce CLI - run: | - npm install @salesforce/cli --location=global - nodeInstallPath=$(npm config get prefix) - echo "$nodeInstallPath/bin" >> $GITHUB_PATH - sf --version - - # Checkout the code in the pull request - - name: Checkout source code - uses: actions/checkout@v3 - - # Load secret for dev hub - - name: Populate auth file with SFDX_URL secret - shell: bash - run: "echo ${{ secrets.SFDX_AUTH_URL }} > ./SFDX_URL_STORE.txt" - - # Authenticate with dev hub - - name: Authenticate with dev hub - run: sf org login sfdx-url -f ./SFDX_URL_STORE.txt -a LibakDevHub -d - - # Run Apex Tests - - name: Deployment Validation - id: run_tests - run: | - sf project deploy start --test-level RunLocalTests --dry-run --json --target-org LibakDevHub > validation_result.json || true - - # Post Comment on PR if Tests Fail or Coverage is Low - - name: Post Comment on PR - uses: actions/github-script@v6 - with: - script: | - const fs = require('fs'); - const deploymentResult = JSON.parse(fs.readFileSync('./validation_result.json', 'utf8')); - - const message = require('./CI/scripts/validation_comment.js')(deploymentResult); - - await github.rest.issues.createComment({ - ...context.repo, - issue_number: context.payload.pull_request?.number, - body: message - }); - - if(deploymentResult.status === 1) { - throw new Error('Deployment Validation was failed. See Pull Request comments.') - } +jobs: + deploy_verification: + uses: akohan91/libak-salesforce-ci/.github/workflows/deployment_validation.yaml@main + secrets: inherit diff --git a/CI/scripts/validation_comment.js b/CI/scripts/validation_comment.js deleted file mode 100644 index 07c321a..0000000 --- a/CI/scripts/validation_comment.js +++ /dev/null @@ -1,57 +0,0 @@ -const deploymentValidation = ({ - status, - result, - warnings -}) => { - const testFailureMessage = buildTestFailureString( - result.details.runTestResult.failures - ); - const componentsFailureMessage = buildComponentsFailureString( - result.details.componentFailures - ); - - return buildMessageString( - status, - testFailureMessage, - componentsFailureMessage - ); -}; - -const buildTestFailureString = testFailures => { - return testFailures && testFailures.length && testFailures.reduce((result, failure) => { - result += ` -\t\tTest Class: ${failure.name} -\t\tTest Method: ${failure.methodName} -\t\tMessage: ${failure.message} -\t\tStackTrace: ${failure.stackTrace.replace(/\n/g, '\n\t\t')} -`; - return result; - }, '\n') -} - -const buildComponentsFailureString = componentFailures => { - return componentFailures && componentFailures.length && componentFailures.reduce((result, failure) => { - result += ` -\t\tType: ${failure.componentType} -\t\tName: ${failure.fullName} -\t\t${failure.problemType}: ${failure.problem} -\t\tLine: ${failure.lineNumber} -`; - return result; - }, '\n') -} - -const buildMessageString = (statusCode, testResultStr, componentsFailureMessage) => { - let message = `### ${!statusCode ? '💚' : '💔'} Deployment Validation Results:`; - message += `\n- **Status**: ${!statusCode && 'Success' || 'Failed'}`; - message += testResultStr - ? '\n- **Test Failures**:' + testResultStr - : ''; - message += componentsFailureMessage - ? '\n- **Component Failures**:' + componentsFailureMessage - : ''; - return message -} - -module.exports = deploymentValidation; - diff --git a/CI/scripts/validation_comment_tests/test_validation_result_mock_components_fail.js b/CI/scripts/validation_comment_tests/test_validation_result_mock_components_fail.js deleted file mode 100644 index 0563803..0000000 --- a/CI/scripts/validation_comment_tests/test_validation_result_mock_components_fail.js +++ /dev/null @@ -1,124 +0,0 @@ -const deploymentResult = { - "status": 1, - "result": { - "checkOnly": true, - "completedDate": "2024-12-20T08:15:35.000Z", - "createdBy": "0052y000000XAvZ", - "createdByName": "Andrew Kohanovskij", - "createdDate": "2024-12-20T08:15:34.000Z", - "details": { - "componentFailures": [ - { - "changed": false, - "columnNumber": 5, - "componentType": "ApexClass", - "created": false, - "createdDate": "2024-12-20T08:15:34.000Z", - "deleted": false, - "fileName": "classes/SomeClass.cls", - "fullName": "SomeClass", - "lineNumber": 4, - "problem": "Missing ';' at '}'", - "problemType": "Error", - "success": false - },{ - "changed": false, - "columnNumber": 5, - "componentType": "ApexClass", - "created": false, - "createdDate": "2024-12-20T08:15:34.000Z", - "deleted": false, - "fileName": "classes/SomeClass.cls", - "fullName": "SomeClass", - "lineNumber": 4, - "problem": "Missing ';' at '}'", - "problemType": "Error", - "success": false - } - ], - "componentSuccesses": [ - { - "changed": true, - "componentType": "", - "created": false, - "createdDate": "2024-12-20T08:15:34.000Z", - "deleted": false, - "fileName": "package.xml", - "fullName": "package.xml", - "success": true - }, - { - "changed": true, - "componentType": "ApexClass", - "created": true, - "createdDate": "2024-12-20T08:15:34.000Z", - "deleted": false, - "fileName": "classes/SomeClassTest.cls", - "fullName": "SomeClassTest", - "id": "01pIi000000Gtz3IAC", - "success": true - } - ], - "runTestResult": { - "numFailures": 0, - "numTestsRun": 0, - "totalTime": 0, - "codeCoverage": [], - "codeCoverageWarnings": [], - "failures": [], - "flowCoverage": [], - "flowCoverageWarnings": [], - "successes": [] - } - }, - "done": true, - "id": "0AfIi000000oo38KAA", - "ignoreWarnings": false, - "lastModifiedDate": "2024-12-20T08:15:35.000Z", - "numberComponentErrors": 1, - "numberComponentsDeployed": 1, - "numberComponentsTotal": 2, - "numberTestErrors": 0, - "numberTestsCompleted": 0, - "numberTestsTotal": 0, - "rollbackOnError": true, - "runTestsEnabled": true, - "startDate": "2024-12-20T08:15:34.000Z", - "status": "Failed", - "success": false, - "files": [ - { - "fullName": "SomeClass", - "type": "ApexClass", - "state": "Failed", - "problemType": "Error", - "filePath": "/Users/andreikakhanouski/Job/test-git-actions/force-app/main/default/classes/SomeClass.cls", - "lineNumber": 4, - "columnNumber": 5, - "error": "Missing ';' at '}' (4:5)" - }, - { - "fullName": "SomeClassTest", - "type": "ApexClass", - "state": "Created", - "filePath": "/Users/andreikakhanouski/Job/test-git-actions/force-app/main/default/classes/SomeClassTest.cls" - }, - { - "fullName": "SomeClassTest", - "type": "ApexClass", - "state": "Created", - "filePath": "/Users/andreikakhanouski/Job/test-git-actions/force-app/main/default/classes/SomeClassTest.cls-meta.xml" - } - ], - "zipSize": 1376, - "zipFileCount": 5, - "deployUrl": "https://libak-dev-ed.my.salesforce.com/lightning/setup/DeployStatus/page?address=%2Fchangemgmt%2FmonitorDeploymentsDetails.apexp%3FasyncId%3D0AfIi000000oo38KAA%26retURL%3D%252Fchangemgmt%252FmonitorDeployment.apexp" - }, - "warnings": [] -} - -const fs = require('fs'); -fs.writeFileSync( - "CI/scripts/validation_comment_tests/test_validation_result_mock_components_fail.md", - require('../validation_comment.js')(deploymentResult) -); \ No newline at end of file diff --git a/CI/scripts/validation_comment_tests/test_validation_result_mock_components_fail.md b/CI/scripts/validation_comment_tests/test_validation_result_mock_components_fail.md deleted file mode 100644 index 2db85eb..0000000 --- a/CI/scripts/validation_comment_tests/test_validation_result_mock_components_fail.md +++ /dev/null @@ -1,13 +0,0 @@ -### 💔 Deployment Validation Results: -- **Status**: Failed -- **Component Failures**: - - Type: ApexClass - Name: SomeClass - Error: Missing ';' at '}' - Line: 4 - - Type: ApexClass - Name: SomeClass - Error: Missing ';' at '}' - Line: 4 diff --git a/CI/scripts/validation_comment_tests/test_validation_result_mock_fail.js b/CI/scripts/validation_comment_tests/test_validation_result_mock_fail.js deleted file mode 100644 index 871e980..0000000 --- a/CI/scripts/validation_comment_tests/test_validation_result_mock_fail.js +++ /dev/null @@ -1,305 +0,0 @@ -const deploymentResult = { - "status": 1, - "result": { - "checkOnly": true, - "completedDate": "2024-12-19T23:01:02.000Z", - "createdBy": "0052y000000XAvZ", - "createdByName": "Andrew Kohanovskij", - "createdDate": "2024-12-19T23:01:00.000Z", - "details": { - "componentSuccesses": [{ - "changed": true, - "componentType": "ApexClass", - "created": true, - "createdDate": "2024-12-19T23:01:01.000Z", - "deleted": false, - "fileName": "classes/SomeClass.cls", - "fullName": "SomeClass", - "id": "01pIi000000GtwnIAC", - "success": true - }, - { - "changed": true, - "componentType": "", - "created": false, - "createdDate": "2024-12-19T23:01:01.000Z", - "deleted": false, - "fileName": "package.xml", - "fullName": "package.xml", - "success": true - }, - { - "changed": true, - "componentType": "ApexClass", - "created": true, - "createdDate": "2024-12-19T23:01:01.000Z", - "deleted": false, - "fileName": "classes/SomeClassTest.cls", - "fullName": "SomeClassTest", - "id": "01pIi000000GtwoIAC", - "success": true - } - ], - "runTestResult": { - "codeCoverage": [{ - "id": "01pIi000000GtwnIAC", - "locationsNotCovered": [{ - "column": 0, - "line": 2, - "numExecutions": 0, - "time": -1 - }, - { - "column": 0, - "line": 6, - "numExecutions": 0, - "time": -1 - } - ], - "name": "SomeClass", - "namespace": null, - "numLocations": 2, - "numLocationsNotCovered": 2, - "type": "Class", - "dmlInfo": [], - "methodInfo": [], - "soqlInfo": [], - "soslInfo": [] - }, - { - "id": "01p2y000000NeREAA0", - "locationsNotCovered": [{ - "column": 0, - "line": 15, - "numExecutions": 0, - "time": -1 - }], - "name": "ForgotPasswordController", - "namespace": null, - "numLocations": 9, - "numLocationsNotCovered": 1, - "type": "Class", - "dmlInfo": [], - "methodInfo": [], - "soqlInfo": [], - "soslInfo": [] - }, - { - "id": "01p2y000000NeRCAA0", - "name": "ChangePasswordController", - "namespace": null, - "numLocations": 6, - "numLocationsNotCovered": 0, - "type": "Class", - "dmlInfo": [], - "locationsNotCovered": [], - "methodInfo": [], - "soqlInfo": [], - "soslInfo": [] - }, - { - "id": "01p2y000000NeR8AAK", - "name": "SiteLoginController", - "namespace": null, - "numLocations": 6, - "numLocationsNotCovered": 0, - "type": "Class", - "dmlInfo": [], - "locationsNotCovered": [], - "methodInfo": [], - "soqlInfo": [], - "soslInfo": [] - }, - { - "id": "01p2y000000NeRAAA0", - "locationsNotCovered": [{ - "column": 0, - "line": 39, - "numExecutions": 0, - "time": -1 - }, - { - "column": 0, - "line": 40, - "numExecutions": 0, - "time": -1 - }, - { - "column": 0, - "line": 43, - "numExecutions": 0, - "time": -1 - }, - { - "column": 0, - "line": 44, - "numExecutions": 0, - "time": -1 - }, - { - "column": 0, - "line": 45, - "numExecutions": 0, - "time": -1 - } - ], - "name": "SiteRegisterController", - "namespace": null, - "numLocations": 27, - "numLocationsNotCovered": 5, - "type": "Class", - "dmlInfo": [], - "methodInfo": [], - "soqlInfo": [], - "soslInfo": [] - }, - { - "id": "01p2y000000NeRGAA0", - "locationsNotCovered": [{ - "column": 0, - "line": 21, - "numExecutions": 0, - "time": -1 - }, - { - "column": 0, - "line": 37, - "numExecutions": 0, - "time": -1 - }, - { - "column": 0, - "line": 38, - "numExecutions": 0, - "time": -1 - } - ], - "name": "MyProfilePageController", - "namespace": null, - "numLocations": 24, - "numLocationsNotCovered": 3, - "type": "Class", - "dmlInfo": [], - "methodInfo": [], - "soqlInfo": [], - "soslInfo": [] - } - ], - "failures": [{ - "id": "01pIi000000GtwoIAC", - "message": "System.AssertException: Assertion Failed", - "methodName": "methodName", - "name": "SomeClassTest", - "namespace": null, - "packageName": "SomeClassTest", - "stackTrace": "External entry point\nClass.SomeClassTest.methodName: line 7, column 1", - "time": 95, - "type": "Class" - },{ - "id": "01pIi000000GtwoIAC", - "message": "System.AssertException: Assertion Failed", - "methodName": "methodName", - "name": "SomeClassTest", - "namespace": null, - "packageName": "SomeClassTest", - "stackTrace": "External entry point\nClass.SomeClassTest.methodName: line 7, column 1", - "time": 95, - "type": "Class" - }], - "numFailures": 1, - "numTestsRun": 6, - "successes": [{ - "id": "01p2y000000NeRDAA0", - "methodName": "testChangePasswordController", - "name": "ChangePasswordControllerTest", - "namespace": null, - "time": 139 - }, - { - "id": "01p2y000000NeRFAA0", - "methodName": "testForgotPasswordController", - "name": "ForgotPasswordControllerTest", - "namespace": null, - "time": 51 - }, - { - "id": "01p2y000000NeR9AAK", - "methodName": "testSiteLoginController", - "name": "SiteLoginControllerTest", - "namespace": null, - "time": 51 - }, - { - "id": "01p2y000000NeRBAA0", - "methodName": "testRegistration", - "name": "SiteRegisterControllerTest", - "namespace": null, - "time": 51 - }, - { - "id": "01p2y000000NeRHAA0", - "methodName": "testSave", - "name": "MyProfilePageControllerTest", - "namespace": null, - "time": 219 - } - ], - "totalTime": 711, - "codeCoverageWarnings": [], - "flowCoverage": [], - "flowCoverageWarnings": [] - }, - "componentFailures": [] - }, - "done": true, - "id": "0AfIi000000onyXKAQ", - "ignoreWarnings": false, - "lastModifiedDate": "2024-12-19T23:01:02.000Z", - "numberComponentErrors": 0, - "numberComponentsDeployed": 2, - "numberComponentsTotal": 2, - "numberTestErrors": 1, - "numberTestsCompleted": 5, - "numberTestsTotal": 6, - "rollbackOnError": true, - "runTestsEnabled": true, - "startDate": "2024-12-19T23:01:00.000Z", - "status": "Failed", - "success": false, - "files": [{ - "fullName": "SomeClass", - "type": "ApexClass", - "state": "Created", - "filePath": "/Users/andreikakhanouski/Job/test-git-actions/force-app/main/default/classes/SomeClass.cls" - }, - { - "fullName": "SomeClass", - "type": "ApexClass", - "state": "Created", - "filePath": "/Users/andreikakhanouski/Job/test-git-actions/force-app/main/default/classes/SomeClass.cls-meta.xml" - }, - { - "fullName": "SomeClassTest", - "type": "ApexClass", - "state": "Created", - "filePath": "/Users/andreikakhanouski/Job/test-git-actions/force-app/main/default/classes/SomeClassTest.cls" - }, - { - "fullName": "SomeClassTest", - "type": "ApexClass", - "state": "Created", - "filePath": "/Users/andreikakhanouski/Job/test-git-actions/force-app/main/default/classes/SomeClassTest.cls-meta.xml" - } - ], - "zipSize": 1430, - "zipFileCount": 5, - "deployUrl": "https://libak-dev-ed.my.salesforce.com/lightning/setup/DeployStatus/page?address=%2Fchangemgmt%2FmonitorDeploymentsDetails.apexp%3FasyncId%3D0AfIi000000onyXKAQ%26retURL%3D%252Fchangemgmt%252FmonitorDeployment.apexp" - }, - "warnings": [] -} - -const fs = require('fs'); -fs.writeFileSync( - "CI/scripts/validation_comment_tests/test_validation_result_mock_fail.md", - require('../validation_comment.js')(deploymentResult) -); \ No newline at end of file diff --git a/CI/scripts/validation_comment_tests/test_validation_result_mock_fail.md b/CI/scripts/validation_comment_tests/test_validation_result_mock_fail.md deleted file mode 100644 index 67e5167..0000000 --- a/CI/scripts/validation_comment_tests/test_validation_result_mock_fail.md +++ /dev/null @@ -1,15 +0,0 @@ -### 💔 Deployment Validation Results: -- **Status**: Failed -- **Test Failures**: - - Test Class: SomeClassTest - Test Method: methodName - Message: System.AssertException: Assertion Failed - StackTrace: External entry point - Class.SomeClassTest.methodName: line 7, column 1 - - Test Class: SomeClassTest - Test Method: methodName - Message: System.AssertException: Assertion Failed - StackTrace: External entry point - Class.SomeClassTest.methodName: line 7, column 1 diff --git a/CI/scripts/validation_comment_tests/test_validation_result_mock_success.js b/CI/scripts/validation_comment_tests/test_validation_result_mock_success.js deleted file mode 100644 index a1d70b0..0000000 --- a/CI/scripts/validation_comment_tests/test_validation_result_mock_success.js +++ /dev/null @@ -1,285 +0,0 @@ -const deploymentResult = { - "status": 0, - "result": { - "checkOnly": true, - "completedDate": "2024-12-19T23:01:02.000Z", - "createdBy": "0052y000000XAvZ", - "createdByName": "Andrew Kohanovskij", - "createdDate": "2024-12-19T23:01:00.000Z", - "details": { - "componentSuccesses": [{ - "changed": true, - "componentType": "ApexClass", - "created": true, - "createdDate": "2024-12-19T23:01:01.000Z", - "deleted": false, - "fileName": "classes/SomeClass.cls", - "fullName": "SomeClass", - "id": "01pIi000000GtwnIAC", - "success": true - }, - { - "changed": true, - "componentType": "", - "created": false, - "createdDate": "2024-12-19T23:01:01.000Z", - "deleted": false, - "fileName": "package.xml", - "fullName": "package.xml", - "success": true - }, - { - "changed": true, - "componentType": "ApexClass", - "created": true, - "createdDate": "2024-12-19T23:01:01.000Z", - "deleted": false, - "fileName": "classes/SomeClassTest.cls", - "fullName": "SomeClassTest", - "id": "01pIi000000GtwoIAC", - "success": true - } - ], - "runTestResult": { - "codeCoverage": [{ - "id": "01pIi000000GtwnIAC", - "locationsNotCovered": [{ - "column": 0, - "line": 2, - "numExecutions": 0, - "time": -1 - }, - { - "column": 0, - "line": 6, - "numExecutions": 0, - "time": -1 - } - ], - "name": "SomeClass", - "namespace": null, - "numLocations": 2, - "numLocationsNotCovered": 2, - "type": "Class", - "dmlInfo": [], - "methodInfo": [], - "soqlInfo": [], - "soslInfo": [] - }, - { - "id": "01p2y000000NeREAA0", - "locationsNotCovered": [{ - "column": 0, - "line": 15, - "numExecutions": 0, - "time": -1 - }], - "name": "ForgotPasswordController", - "namespace": null, - "numLocations": 9, - "numLocationsNotCovered": 1, - "type": "Class", - "dmlInfo": [], - "methodInfo": [], - "soqlInfo": [], - "soslInfo": [] - }, - { - "id": "01p2y000000NeRCAA0", - "name": "ChangePasswordController", - "namespace": null, - "numLocations": 6, - "numLocationsNotCovered": 0, - "type": "Class", - "dmlInfo": [], - "locationsNotCovered": [], - "methodInfo": [], - "soqlInfo": [], - "soslInfo": [] - }, - { - "id": "01p2y000000NeR8AAK", - "name": "SiteLoginController", - "namespace": null, - "numLocations": 6, - "numLocationsNotCovered": 0, - "type": "Class", - "dmlInfo": [], - "locationsNotCovered": [], - "methodInfo": [], - "soqlInfo": [], - "soslInfo": [] - }, - { - "id": "01p2y000000NeRAAA0", - "locationsNotCovered": [{ - "column": 0, - "line": 39, - "numExecutions": 0, - "time": -1 - }, - { - "column": 0, - "line": 40, - "numExecutions": 0, - "time": -1 - }, - { - "column": 0, - "line": 43, - "numExecutions": 0, - "time": -1 - }, - { - "column": 0, - "line": 44, - "numExecutions": 0, - "time": -1 - }, - { - "column": 0, - "line": 45, - "numExecutions": 0, - "time": -1 - } - ], - "name": "SiteRegisterController", - "namespace": null, - "numLocations": 27, - "numLocationsNotCovered": 5, - "type": "Class", - "dmlInfo": [], - "methodInfo": [], - "soqlInfo": [], - "soslInfo": [] - }, - { - "id": "01p2y000000NeRGAA0", - "locationsNotCovered": [{ - "column": 0, - "line": 21, - "numExecutions": 0, - "time": -1 - }, - { - "column": 0, - "line": 37, - "numExecutions": 0, - "time": -1 - }, - { - "column": 0, - "line": 38, - "numExecutions": 0, - "time": -1 - } - ], - "name": "MyProfilePageController", - "namespace": null, - "numLocations": 24, - "numLocationsNotCovered": 3, - "type": "Class", - "dmlInfo": [], - "methodInfo": [], - "soqlInfo": [], - "soslInfo": [] - } - ], - "failures": [], - "numFailures": 1, - "numTestsRun": 6, - "successes": [{ - "id": "01p2y000000NeRDAA0", - "methodName": "testChangePasswordController", - "name": "ChangePasswordControllerTest", - "namespace": null, - "time": 139 - }, - { - "id": "01p2y000000NeRFAA0", - "methodName": "testForgotPasswordController", - "name": "ForgotPasswordControllerTest", - "namespace": null, - "time": 51 - }, - { - "id": "01p2y000000NeR9AAK", - "methodName": "testSiteLoginController", - "name": "SiteLoginControllerTest", - "namespace": null, - "time": 51 - }, - { - "id": "01p2y000000NeRBAA0", - "methodName": "testRegistration", - "name": "SiteRegisterControllerTest", - "namespace": null, - "time": 51 - }, - { - "id": "01p2y000000NeRHAA0", - "methodName": "testSave", - "name": "MyProfilePageControllerTest", - "namespace": null, - "time": 219 - } - ], - "totalTime": 711, - "codeCoverageWarnings": [], - "flowCoverage": [], - "flowCoverageWarnings": [] - }, - "componentFailures": [] - }, - "done": true, - "id": "0AfIi000000onyXKAQ", - "ignoreWarnings": false, - "lastModifiedDate": "2024-12-19T23:01:02.000Z", - "numberComponentErrors": 0, - "numberComponentsDeployed": 2, - "numberComponentsTotal": 2, - "numberTestErrors": 1, - "numberTestsCompleted": 5, - "numberTestsTotal": 6, - "rollbackOnError": true, - "runTestsEnabled": true, - "startDate": "2024-12-19T23:01:00.000Z", - "status": "Failed", - "success": false, - "files": [{ - "fullName": "SomeClass", - "type": "ApexClass", - "state": "Created", - "filePath": "/Users/andreikakhanouski/Job/test-git-actions/force-app/main/default/classes/SomeClass.cls" - }, - { - "fullName": "SomeClass", - "type": "ApexClass", - "state": "Created", - "filePath": "/Users/andreikakhanouski/Job/test-git-actions/force-app/main/default/classes/SomeClass.cls-meta.xml" - }, - { - "fullName": "SomeClassTest", - "type": "ApexClass", - "state": "Created", - "filePath": "/Users/andreikakhanouski/Job/test-git-actions/force-app/main/default/classes/SomeClassTest.cls" - }, - { - "fullName": "SomeClassTest", - "type": "ApexClass", - "state": "Created", - "filePath": "/Users/andreikakhanouski/Job/test-git-actions/force-app/main/default/classes/SomeClassTest.cls-meta.xml" - } - ], - "zipSize": 1430, - "zipFileCount": 5, - "deployUrl": "https://libak-dev-ed.my.salesforce.com/lightning/setup/DeployStatus/page?address=%2Fchangemgmt%2FmonitorDeploymentsDetails.apexp%3FasyncId%3D0AfIi000000onyXKAQ%26retURL%3D%252Fchangemgmt%252FmonitorDeployment.apexp" - }, - "warnings": [] -} - -const fs = require('fs'); -fs.writeFileSync( - "CI/scripts/validation_comment_tests/test_validation_result_mock_success.md", - require('../validation_comment.js')(deploymentResult) -); \ No newline at end of file diff --git a/CI/scripts/validation_comment_tests/test_validation_result_mock_success.md b/CI/scripts/validation_comment_tests/test_validation_result_mock_success.md deleted file mode 100644 index 8b63638..0000000 --- a/CI/scripts/validation_comment_tests/test_validation_result_mock_success.md +++ /dev/null @@ -1,2 +0,0 @@ -### 💚 Deployment Validation Results: -- **Status**: Success \ No newline at end of file diff --git a/CI/scripts/validation_comment_tests/validation_comment_test.sh b/CI/scripts/validation_comment_tests/validation_comment_test.sh deleted file mode 100644 index 03bfbec..0000000 --- a/CI/scripts/validation_comment_tests/validation_comment_test.sh +++ /dev/null @@ -1,3 +0,0 @@ -node CI/scripts/validation_comment_tests/test_validation_result_mock_success.js && -node CI/scripts/validation_comment_tests/test_validation_result_mock_fail.js && -node CI/scripts/validation_comment_tests/test_validation_result_mock_components_fail.js \ No newline at end of file