Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ about: Report a bug or issue to help us improve
title: ''
labels: bug
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Some steps involved to reproduce the bug and any code samples you can share.

```
// Helps us with reproducing the error :)
```
Expand Down
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ about: Suggest an idea for this project
title: ''
labels: enhancement
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
Expand Down
61 changes: 0 additions & 61 deletions .github/workflows/clubhouse.yml

This file was deleted.

41 changes: 0 additions & 41 deletions .github/workflows/pull-reqeust.yml

This file was deleted.

71 changes: 71 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Pull Request
on:
# Trigger the workflow on push or pull request,
# but only for the main branch
push:
branches:
- main
pull_request:
branches:
- main

jobs:
lint:
runs-on: ubuntu-latest
name: Lint & Prettier
steps:
- uses: actions/checkout@v4
- name: Setup Nodejs
uses: actions/setup-node@v4
with:
node-version: 20.x

- name: Install dependencies
run: npm install

- name: Run lint checks
run: npm run lint:ci

- name: Run prettier checks
run: npm run lint:prettier:check

tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- node-version: 18.x
test-type: nodejs
- node-version: 20.x
test-type: nodejs
- node-version: 22.x
test-type: nodejs
- node-version: 24.x
test-type: nodejs
- node-version: 20.x
test-type: cloudflare-workers
name: ${{ matrix.test-type == 'cloudflare-workers' && 'Cloudflare Workers' || format('Nodejs {0}', matrix.node-version) }}
steps:
- uses: actions/checkout@v4
- name: Setup Nodejs ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies and build
run: npm install

- name: Run Node.js tests
if: matrix.test-type == 'nodejs'
run: npm run test:coverage

- name: Run Cloudflare Workers tests
if: matrix.test-type == 'cloudflare-workers'
run: npm run test:miniflare

- name: Upload coverage to Codecov
if: matrix.test-type == 'nodejs' && matrix.node-version == '20.x'
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/sdk-reference.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ jobs:
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: nylas-nodejs-sdk-reference
directory: docs
wranglerVersion: "3"
wranglerVersion: '3'
branch: ${{ env.CLOUDFLARE_BRANCH }}
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
"trailingComma": "es5",
"singleQuote": true,
"printWidth": 80
}
}
Loading