Skip to content

Commit

Permalink
ci: run matrix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmbourne committed Mar 10, 2024
1 parent 72ba27e commit f940073
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
strategy:
matrix:
node-version: [18.x, 20.x]
axios-version: ["1.4.0", "1.5.0", "1.6.0", "latest"]

steps:
- uses: actions/checkout@v3
Expand All @@ -25,6 +26,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm install axios@${{ matrix.axios-version }}
- run: npm run build
- run: npm run lint
- run: npm run test
Expand Down
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# aws4-axios

<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->

[![All Contributors](https://img.shields.io/badge/all_contributors-6-orange.svg?style=flat-square)](#contributors-)

<!-- ALL-CONTRIBUTORS-BADGE:END -->

[![npm version](https://img.shields.io/npm/v/aws4-axios.svg?style=flat-square)](https://www.npmjs.org/package/aws4-axios)
Expand All @@ -17,6 +19,18 @@ This may be useful for accessing AWS services protected with IAM auth such as an
| --------------------- | ------------------------------- |
| `yarn add aws4-axios` | `npm install --save aws4-axios` |

# Compatibility

This interceptor is heavily dependent on Axios internals, so minor changes to them can cause the interceptor to fail.

Please make sure you are using one of the following versions of Axios before submitting issues etc.

| Axios Version | Supported? |
| ------------------- | ---------- |
| `< 1.4.0` | ❌ No |
| `>= 1.4.0 <= 1.6.7` | ✅ Yes |
| `> 1.6.7` | Unknown |

# Usage

To add an interceptor to the default Axios client:
Expand Down

0 comments on commit f940073

Please sign in to comment.