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 912b864 commit df37a21
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 34 deletions.
21 changes: 4 additions & 17 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9519,32 +9519,19 @@ function runStepsEvaluator(pathList) {

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

// const outputBase64 = "eyJnaXRodWJfdXNlcm5hbWUiOiAia2F0aWFjaWgiLAogImdpdGh1Yl9yZXBvc2l0b3J5IjogInNkLTAwMC1wcm9qZXRvLWFuZHJvaWQtdHJ5YmUtZ2VuaXVzLTIwMjMtMDctMzEtMDktMjMtMDAiLAogImV2YWx1YXRpb25zIjogW3siZ3JhZGUiOiAiMSIsICJkZXNjcmlwdGlvbiI6ICJHZW5pdXNMb2dpYyJ9XQp9IA==";

// const enc = new Base64();
// const b64 = enc.urlEncode('some url data');

// var texto = '{"atributo1": "valor 1", "atributo2": 23}';

// const outputBase64 = parserJSONtoBase64(outputJSON)

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

const outputBase64_2 = parserJSONtoBase64(json)

console.log('teste2', outputBase64_2)

const a = core.setOutput('result', 'eyJnaXRodWJfdXNlcm5hbWUiOiAia2F0aWFjaWgiLCAiZ2l0aHViX3JlcG9zaXRvcnlfbmFtZSI6ICJiZXRyeWJlL3NkLTAwMC1wcm9qZXRvLWFuZHJvaWQtdHJ5YmUtZ2VuaXVzLTIwMjMtMDctMzEtMDktMjMtMDAiLCBldmFsdWF0aW9uczogW3siZ3JhZGUiOiAiMSIsICJkZXNjcmlwdGlvbiI6ICJHZW5pdXNMb2dpYyJ9XX0=')
console.log('a', a)
const outputBase64 = parserJSONtoBase64(json)

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

Expand Down
21 changes: 4 additions & 17 deletions src/controller/evaluator.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,32 +28,19 @@ function runStepsEvaluator(pathList) {

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

// const outputBase64 = "eyJnaXRodWJfdXNlcm5hbWUiOiAia2F0aWFjaWgiLAogImdpdGh1Yl9yZXBvc2l0b3J5IjogInNkLTAwMC1wcm9qZXRvLWFuZHJvaWQtdHJ5YmUtZ2VuaXVzLTIwMjMtMDctMzEtMDktMjMtMDAiLAogImV2YWx1YXRpb25zIjogW3siZ3JhZGUiOiAiMSIsICJkZXNjcmlwdGlvbiI6ICJHZW5pdXNMb2dpYyJ9XQp9IA==";

// const enc = new Base64();
// const b64 = enc.urlEncode('some url data');

// var texto = '{"atributo1": "valor 1", "atributo2": 23}';

// const outputBase64 = parserJSONtoBase64(outputJSON)

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

const outputBase64_2 = parserJSONtoBase64(json)

console.log('teste2', outputBase64_2)

const a = core.setOutput('result', 'eyJnaXRodWJfdXNlcm5hbWUiOiAia2F0aWFjaWgiLCAiZ2l0aHViX3JlcG9zaXRvcnlfbmFtZSI6ICJiZXRyeWJlL3NkLTAwMC1wcm9qZXRvLWFuZHJvaWQtdHJ5YmUtZ2VuaXVzLTIwMjMtMDctMzEtMDktMjMtMDAiLCBldmFsdWF0aW9uczogW3siZ3JhZGUiOiAiMSIsICJkZXNjcmlwdGlvbiI6ICJHZW5pdXNMb2dpYyJ9XX0=')
console.log('a', a)
const outputBase64 = parserJSONtoBase64(json)

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

Expand Down

0 comments on commit df37a21

Please sign in to comment.