-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
async triggers #348
async triggers #348
Conversation
Codecov Report
@@ Coverage Diff @@
## master #348 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 8 8
Lines 349 342 -7
Branches 61 51 -10
=========================================
- Hits 349 342 -7
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
|
||
module.exports = { | ||
globals: { | ||
"ts-jest": { | ||
'ts-jest': { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just eslint --auto-fix
collectCoverage: true, | ||
collectCoverageFrom: ["src/*.ts", "!./index.ts"], | ||
coverageDirectory: "./coverage/", | ||
collectCoverageFrom: ['src/*.ts', '!./index.ts', '!src/rules.guard.ts'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't want to collect coverage from an autogenerated file.
@@ -102,7 +102,6 @@ | |||
"author": "Gago <[email protected]>", | |||
"dependencies": { | |||
"@actions/core": "1.2.6", | |||
"@github/memoize": "^1.0.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we have the actual files instead of the library anyway.
@@ -137,6 +136,7 @@ | |||
"prettier-eslint": "12.0.0", | |||
"prettier-eslint-cli": "5.0.0", | |||
"pretty-quick": "3.1.0", | |||
"ts-auto-guard": "1.0.0-alpha.13", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is what I've used to generate the type guards
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good 🚀
c263e75
to
5c45e0e
Compare
Issue Reference: #213
Description
all triggers are now async by default.
Motivation and Context
As a step to enable #346 and keep refactoring without changing functionality for #213 I've made all. the interfaces for the triggers be async.
note: Sadly I couldn't replace as much code as I wanted with the generated guards. but this will be solved when we are able to refactor the rules shape.
for now, we will have to keep the function
isValidRawRule
around given that it is more expressive than the ones autogenerated.How Has This Been Tested?
unit tests.
Checklist: