Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
renanvy committed Aug 4, 2023
1 parent 5ee03a6 commit fa11bff
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 34 deletions.
34 changes: 17 additions & 17 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9511,27 +9511,27 @@ const UNAPPROVED_GRADE = 1
* @return {string}
*/
function runStepsEvaluator(pathList) {
try {
// const pathFiles = getTestFiles(pathList)
// const testCasesList = pathFiles.map((pathFile) => {
// return buildTestCaseList(pathFile.path, pathFile.files)
// }).reduce((acc, testType) => acc.concat(testType), []);
// try {
// const pathFiles = getTestFiles(pathList)
// const testCasesList = pathFiles.map((pathFile) => {
// return buildTestCaseList(pathFile.path, pathFile.files)
// }).reduce((acc, testType) => acc.concat(testType), []);

// const output = generateOuputJSON(testCasesList);
// const outputBase64 = parserJSONtoBase64(output)
// const output = generateOuputJSON(testCasesList);
// const outputBase64 = parserJSONtoBase64(output)

const json = JSON.stringify({
github_username: getGithubUsernameData(),
github_repository_name: getGithubRepositoryNameData(),
evaluations: [{grade: '1', description: 'GeniusLogic'}],
})
const json = JSON.stringify({
github_username: getGithubUsernameData(),
github_repository_name: getGithubRepositoryNameData(),
evaluations: [{grade: '1', description: 'GeniusLogic'}],
})

const outputBase64 = parserJSONtoBase64(json)
const outputBase64 = parserJSONtoBase64(json)

core.setOutput('result', outputBase64)
} catch(error) {
core.setFailed(`Action failed with error: ${error}`)
}
core.setOutput('result', outputBase64)
// } catch(error) {
// core.setFailed(`Action failed with error: ${error}`)
// }
}

/**
Expand Down
34 changes: 17 additions & 17 deletions src/controller/evaluator.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,27 +20,27 @@ const UNAPPROVED_GRADE = 1
* @return {string}
*/
function runStepsEvaluator(pathList) {
try {
// const pathFiles = getTestFiles(pathList)
// const testCasesList = pathFiles.map((pathFile) => {
// return buildTestCaseList(pathFile.path, pathFile.files)
// }).reduce((acc, testType) => acc.concat(testType), []);
// try {
// const pathFiles = getTestFiles(pathList)
// const testCasesList = pathFiles.map((pathFile) => {
// return buildTestCaseList(pathFile.path, pathFile.files)
// }).reduce((acc, testType) => acc.concat(testType), []);

// const output = generateOuputJSON(testCasesList);
// const outputBase64 = parserJSONtoBase64(output)
// const output = generateOuputJSON(testCasesList);
// const outputBase64 = parserJSONtoBase64(output)

const json = JSON.stringify({
github_username: getGithubUsernameData(),
github_repository_name: getGithubRepositoryNameData(),
evaluations: [{grade: '1', description: 'GeniusLogic'}],
})
const json = JSON.stringify({
github_username: getGithubUsernameData(),
github_repository_name: getGithubRepositoryNameData(),
evaluations: [{grade: '1', description: 'GeniusLogic'}],
})

const outputBase64 = parserJSONtoBase64(json)
const outputBase64 = parserJSONtoBase64(json)

core.setOutput('result', outputBase64)
} catch(error) {
core.setFailed(`Action failed with error: ${error}`)
}
core.setOutput('result', outputBase64)
// } catch(error) {
// core.setFailed(`Action failed with error: ${error}`)
// }
}

/**
Expand Down

0 comments on commit fa11bff

Please sign in to comment.