Skip to content

Commit

Permalink
Add initial tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostrider-05 committed Apr 8, 2024
1 parent 3ae07bc commit d17e0b6
Show file tree
Hide file tree
Showing 7 changed files with 2,618 additions and 219 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Test
on: [push, pull_request]
jobs:
test_18:
name: Test node.js 18
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install node.js v18
uses: actions/setup-node@v4
with:
node-version: 18
cache: npm

- name: Install dependencies
run: npm install

- name: Run tsc
run: npm run prestart

- name: Run eslint
run: npm run lint

- name: Run tests
run: npm run test
test_20:
name: Test node.js 20
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install node.js v20
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm

- name: Install dependencies
run: npm install

- name: Run tsc
run: npm run prestart

- name: Run eslint
run: npm run lint

- name: Run tests
run: npm run test
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Typescript library for the V2 [Patreon API](https://docs.patreon.com/)

## Installation

> **Warning**
> [!WARNING]
> You might be looking for [patreon-js](https://github.com/Patreon/patreon-js) for JavaScript, [patreon-api-types](https://github.com/mrTomatolegit/patreon-api-types) for less strict types and no client or another package in between.
```sh
Expand All @@ -17,7 +17,7 @@ npm install patreon-api.ts

## Usage

> **Warning**
> [!NOTE]
> This package does not include v1 of the Patreon API and starts with [API v2](https://docs.patreon.com/#apiv2-oauth)
The default API version for this package is `2` and might change in major versions.
Expand Down
Loading

0 comments on commit d17e0b6

Please sign in to comment.