Skip to content
Merged
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
27 changes: 18 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,25 @@ jobs:
steps:
- uses: actions/checkout@v6

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 10

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
if: hashFiles('yarn.lock') != ''
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"

- name: Install Node packages
run: yarn install --pure-lockfile
run: pnpm install --frozen-lockfile

- name: Run tests
run: yarn test
run: pnpm test

- name: Run type definition tests
run: yarn test:types
run: pnpm test:types

linters:
name: Linters
Expand All @@ -40,15 +45,19 @@ jobs:
- name: Checkout code
uses: actions/checkout@v6

- name: Set up Node
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 10

- name: Use Node.js
uses: actions/setup-node@v6
if: hashFiles('yarn.lock') != ''
with:
cache: yarn
cache: "pnpm"

- name: Install Node packages
run: yarn install --pure-lockfile
run: pnpm install --frozen-lockfile

- name: ESLint
run: yarn lint
run: pnpm lint
if: always()
13 changes: 5 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

[![Version](https://img.shields.io/npm/v/emailable.svg)](https://www.npmjs.org/package/emailable)
![Build Status](https://github.com/emailable/emailable-node/actions/workflows/ci.yml/badge.svg)
[![Maintainability](https://api.codeclimate.com/v1/badges/e1f07e3080d7ed2ca09e/maintainability)](https://codeclimate.com/github/emailable/emailable-node/maintainability)
[![Downloads](https://img.shields.io/npm/dm/emailable.svg)](https://www.npmjs.com/package/emailable)
[![Try on RunKit](https://badge.runkitcdn.com/emailable.svg)](https://runkit.com/npm/emailable)

This is the official node wrapper for the Emailable API.

Expand All @@ -19,6 +17,8 @@ Install the package with:
```sh
npm install emailable --save
# or
pnpm add emailable
# or
yarn add emailable
```

Expand Down Expand Up @@ -138,17 +138,14 @@ emailable.batches.status(id)
Run all tests:

```sh
$ yarn install
$ yarn test
$ pnpm install
$ pnpm test
```

If you do not have `yarn` installed, you can get it with `npm install --global
yarn`.

Run a single test suite without a coverage report:

```sh
$ yarn test test/verify.spec.js
$ pnpm test test/verify.spec.js
```

## Contributing
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,5 @@
},
"dependencies": {
"axios": "^1.6.0"
},
"packageManager": "yarn@1.22.21+sha1.1959a18351b811cdeedbd484a8f86c3cc3bbaf72"
}
}
Loading