-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into tadzik/fix-logging-modules
- Loading branch information
Showing
51 changed files
with
5,058 additions
and
9,497 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Docs | ||
on: | ||
push: | ||
branches: | ||
- master | ||
# TODO: Keep all historical builds (like the js-sdk) | ||
#tags: ['v*'] | ||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '14' | ||
- run: yarn install | ||
- run: yarn docs | ||
- name: Build and deploy docs | ||
uses: JamesIves/github-pages-deploy-action@4.1.7 | ||
with: | ||
branch: gh-pages | ||
folder: .jsdoc/matrix-bot-sdk/develop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,77 @@ | ||
name: Docs | ||
on: | ||
name: Main | ||
on: | ||
push: | ||
branches: | ||
- master | ||
# TODO: Keep all historical builds (like the js-sdk) | ||
#tags: ['v*'] | ||
jobs: | ||
build-and-deploy: | ||
# Global | ||
# ================================================ | ||
|
||
eslint-16: | ||
name: 'ESLint Node 16' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Extract branch name | ||
shell: bash | ||
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" | ||
id: extract_branch | ||
- name: Build and deploy docs | ||
uses: JamesIves/github-pages-deploy-action@releases/v2 | ||
env: | ||
ACCESS_TOKEN: ${{ secrets.GH_PAT }} | ||
BASE_BRANCH: ${{ steps.extract_branch.outputs.branch }} | ||
BRANCH: gh-pages | ||
BUILD_SCRIPT: "yarn install && yarn docs" | ||
FOLDER: ".jsdoc/matrix-bot-sdk/develop" | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16' | ||
- run: yarn install | ||
- run: yarn lint | ||
|
||
# Node 16 | ||
# ================================================ | ||
|
||
build-16: | ||
name: 'Build Node 16' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16' | ||
- run: yarn install | ||
- run: yarn build | ||
- run: yarn build:examples | ||
|
||
tests-16: | ||
name: 'Mocha Tests Node 16' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16' | ||
- run: yarn install | ||
- uses: nick-invision/retry@v2 | ||
with: | ||
max_attempts: 5 | ||
timeout_minutes: 5 | ||
command: yarn test | ||
|
||
# Node 14 | ||
# ================================================ | ||
|
||
build-14: | ||
name: 'Build Node 14' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '14' | ||
- run: yarn install | ||
- run: yarn build | ||
- run: yarn build:examples | ||
|
||
tests-14: | ||
name: 'Mocha Tests Node 14' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '14' | ||
- run: yarn install | ||
- uses: nick-invision/retry@v2 | ||
with: | ||
max_attempts: 5 | ||
timeout_minutes: 5 | ||
command: yarn test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[![npm version](https://badge.fury.io/js/matrix-bot-sdk.svg)](https://www.npmjs.com/package/matrix-bot-sdk) | ||
|
||
TypeScript/JavaScript SDK for Matrix bots. For help and support, visit [#matrix-bot-sdk:t2bot.io](https://matrix.to/#/#matrix-bot-sdk:t2bot.io) | ||
|
||
## Templates and guides | ||
|
||
* [Bot documentation](https://turt2live.github.io/matrix-bot-sdk/tutorial-bot.html) | ||
* [Appservice/bridge documentation](https://turt2live.github.io/matrix-bot-sdk/tutorial-appservice.html) | ||
* [matrix.org's guide on the basic functions of the bot](https://matrix.org/docs/guides/usage-of-matrix-bot-sdk) | ||
* [GitHub bot template repository](https://github.com/turt2live/matrix-bot-sdk-bot-template) | ||
|
||
## Installing | ||
|
||
This package can be found on [npm](https://www.npmjs.com/package/matrix-bot-sdk): | ||
``` | ||
npm install matrix-bot-sdk | ||
``` |
Oops, something went wrong.