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
3 changes: 2 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm

- name: Install dependencies
run: yarn install --frozen-lockfile
run: npm ci

- name: Configure git
run: |
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: ['20', '22', '24']
node: ['22', '24']
name: Node ${{ matrix.node }}

steps:
Expand All @@ -20,12 +20,13 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: npm

- name: Install dependencies
run: yarn install --frozen-lockfile
run: npm ci

- name: Run lint
run: yarn lint
run: npm run lint

- name: Run tests
run: yarn test:coverage
run: npm run test:coverage
16 changes: 5 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,10 @@ This module provides a set of errors based on [standard-http-error](https://www.

## Setup

Install **@uphold/http-errors** with yarn:
Install **@uphold/http-errors** with npm:

```sh
yarn add @uphold/http-errors
```

Alternatively, with npm:

```sh
npm i @uphold/http-errors
npm install @uphold/http-errors
```

## Errors
Expand Down Expand Up @@ -118,19 +112,19 @@ try {
Use the `test` script to run the test suite:

```sh
yarn test
npm test
```

To run the tests on watch mode, use the `test:watch` script:

```sh
yarn test:watch
npm run test:watch
```

To test and check coverage use the `test:coverage` script:

```sh
yarn test:coverage
npm run test:coverage
```

A full coverage report will be generated on `/coverage` folder.
Expand Down
Loading
Loading