Skip to content

Commit

Permalink
Add test for callbacks in the future (#4)
Browse files Browse the repository at this point in the history
* Add test for callbacks in the future

* run tests in CI

Signed-off-by: Matteo Collina <[email protected]>

* tests passing on Node v18

Signed-off-by: Matteo Collina <[email protected]>

Signed-off-by: Matteo Collina <[email protected]>
  • Loading branch information
mcollina authored Jan 16, 2023
1 parent 1a51056 commit bb92c12
Show file tree
Hide file tree
Showing 5 changed files with 8,740 additions and 3 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: ci

on:
push:
paths-ignore:
- 'docs/**'
- '*.md'
pull_request:
paths-ignore:
- 'docs/**'
- '*.md'

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v2

- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Install
run: |
npm ci
- name: Run tests
run: |
npm run test
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=true
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ after a given time.
## TODO

* [x] support multiple content-types
* [ ] add tests for callbacks in the future
* [x] add tests for callbacks in the future
* [ ] implement at-least-once semantics / retry if target fails
* [ ] cron job capability / repeat
* [ ] authorization
* [ ] Dead letter endpoint

## License

Expand Down
Loading

0 comments on commit bb92c12

Please sign in to comment.