Skip to content

Commit

Permalink
Merge pull request #920 from cordejs/e2e
Browse files Browse the repository at this point in the history
Corde bot improvements
  • Loading branch information
lucasgmagalhaes authored Aug 8, 2021
2 parents 8a024fb + c2f0f5d commit f9d14e2
Show file tree
Hide file tree
Showing 36 changed files with 1,957 additions and 508 deletions.
54 changes: 0 additions & 54 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,36 +54,6 @@ jobs:
name: lint
command: yarn lint

test-node-14:
<<: *work-dir
docker:
- image: circleci/node:14
steps:
- *attach-step
- run:
name: Tests
command: yarn test

test-node-15:
<<: *work-dir
docker:
- image: circleci/node:15
steps:
- *attach-step
- run:
name: Tests
command: yarn test

test-node-LTS:
<<: *work-dir
docker:
- image: circleci/node:latest
steps:
- *attach-step
- run:
name: Tests
command: yarn test

test-node-16:
<<: *work-dir
docker:
Expand Down Expand Up @@ -135,40 +105,16 @@ workflows:
branches:
ignore: gh-pages

- test-node-14:
requires:
- build
filters:
branches:
ignore: gh-pages

- test-node-15:
requires:
- build
filters:
branches:
ignore: gh-pages

- test-node-16:
requires:
- build
filters:
branches:
ignore: gh-pages

- test-node-LTS:
requires:
- build
filters:
branches:
ignore: gh-pages

- publish-coverage:
requires:
- test-node-14
- test-node-15
- test-node-16
- test-node-LTS

filters:
branches:
Expand Down
15 changes: 3 additions & 12 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,12 @@ on: [push]
jobs:
linux:
runs-on: ubuntu-latest
strategy:
matrix:
node: [14, 15, 16]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
node-version: 16.x
cache: "yarn"

- name: Install dependencies
Expand All @@ -40,15 +37,12 @@ jobs:

windows:
runs-on: windows-latest
strategy:
matrix:
node: [14, 15, 16]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
node-version: 16.x
cache: "yarn"

- name: Install dependencies
Expand All @@ -74,15 +68,12 @@ jobs:

mac:
runs-on: macos-latest
strategy:
matrix:
node: [14, 15, 16]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
node-version: 16.x
cache: "yarn"

- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16.1.0
v16.6.0
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,20 +50,20 @@ The bellow documentation is a resume of what you can find in [Corde's site](http

## 🚀 Getting started

**Node.js 14.0.0 or newer is required**
**Node.js 14.0 or newer is required**

Starting to create tests with Corde is simple. First, install it locally with npm `npm i -D corde` or yarn `yarn add -D corde`. You can also install it globally: `npm i -g corde` or `yarn global add corde`.

After installed, add the file `corde.config.json` in the root of your application with the following structure:

```javascript
{
"cordeBotToken": "YOUR_TESTING_BOT_TOKEN_HERE",
"botTestId": "YOUR_TESTING_BOT_ID_HERE",
"botToken": "YOUR_BOT_TOKEN_HERE",
"guildId": "THE_GUID_OF_BOT_HERE",
"channelId": "CHANNELS_ID_HERE",
"botPrefix": "+",
"cordeBotToken": "<tokenForCordeBot>",
"botTestId": "<yourBotId>",
"botToken": "<yourBotToken>",
"guildId": "<guildId>",
"channelId": "<channelId>",
"botPrefix": "!",
"testMatches": ["./test/**"]
}
```
Expand Down
Loading

0 comments on commit f9d14e2

Please sign in to comment.