Skip to content

Commit

Permalink
- resolve wrong configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
mikepenz committed Jan 17, 2021
1 parent ed2f2fa commit f9ca152
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"plugins": ["jest", "@typescript-eslint"],
"extends": ["plugin:github/recommended"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 9,
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"xml-js": "^1.6.11"
},
"devDependencies": {
"@types/jest": "^26.0.15",
"@types/jest": "^26.0.19",
"@types/node": "^14.14.21",
"@typescript-eslint/parser": "^4.13.0",
"@vercel/ncc": "^0.27.0",
Expand Down
6 changes: 4 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,11 @@ export async function run(): Promise<void> {
auth: token
})
await octokit.checks.create(createCheckRequest)

if (failOnFailure && conclusion === 'failure') {
core.setFailed(`Tests reported ${testResult.annotations.length} failures`)
core.setFailed(
`Tests reported ${testResult.annotations.length} failures`
)
}
} catch (error) {
core.error(`Failed to create checks using the provided token. (${error})`)
Expand Down

0 comments on commit f9ca152

Please sign in to comment.