Skip to content

Commit 5f71d80

Browse files
authored
Merge branch 'master' into aborted
2 parents 126e939 + 5bc9ea2 commit 5f71d80

4 files changed

Lines changed: 33 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
node-version: [12.x, 14.x, 16.x]
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Setup node
20+
uses: actions/setup-node@v2
21+
with:
22+
node-version: ${{ matrix.node }}
23+
- run: npm install
24+
- run: npm test

ECOSYSTEM.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ This is a list of axios related libraries and resources. If you have a suggestio
1818
* [r2curl](https://github.com/uyu423/r2curl) - Extracts the cURL command string from the Axios object. (AxiosResponse, AxiosRequestConfig)
1919
* [swagger-taxos-codegen](https://github.com/michalzaq12/swagger-taxos-codegen) - Axios based Swagger Codegen (tailored for typescript)
2020
* [axios-endpoints](https://github.com/renancaraujo/axios-endpoints) - Axios endpoints helps you to create a more concise endpoint mapping with axios.
21+
* [axios-multi-api](https://github.com/MattCCC/axios-multi-api) - Easy API handling whenever there are many endpoints to add. It helps to make Axios requests in an easy and declarative manner.
2122

2223
### Logging and debugging
2324

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![npm version](https://img.shields.io/npm/v/axios.svg?style=flat-square)](https://www.npmjs.org/package/axios)
44
[![CDNJS](https://img.shields.io/cdnjs/v/axios.svg?style=flat-square)](https://cdnjs.com/libraries/axios)
5-
[![build status](https://img.shields.io/travis/axios/axios/master.svg?style=flat-square)](https://travis-ci.org/axios/axios)
5+
![Build status](https://github.com/axios/axios/actions/workflows/ci.yml/badge.svg)
66
[![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/axios/axios)
77
[![code coverage](https://img.shields.io/coveralls/mzabriskie/axios.svg?style=flat-square)](https://coveralls.io/r/mzabriskie/axios)
88
[![install size](https://packagephobia.now.sh/badge?p=axios)](https://packagephobia.now.sh/result?p=axios)
@@ -456,20 +456,20 @@ These are the available config options for making requests. Only the `url` is re
456456
// automatically. If set to `true` will also remove the 'content-encoding' header
457457
// from the responses objects of all decompressed responses
458458
// - Node only (XHR cannot turn off decompression)
459-
decompress: true // default
459+
decompress: true, // default
460460

461461
// transitional options for backward compatibility that may be removed in the newer versions
462462
transitional: {
463463
// silent JSON parsing mode
464464
// `true` - ignore JSON parsing errors and set response.data to null if parsing failed (old behaviour)
465465
// `false` - throw SyntaxError if JSON parsing failed (Note: responseType must be set to 'json')
466-
silentJSONParsing: true; // default value for the current Axios version
466+
silentJSONParsing: true, // default value for the current Axios version
467467

468-
// try to parse the response string as JSON even if `resposeType` is not 'json'
468+
// try to parse the response string as JSON even if `responseType` is not 'json'
469469
forcedJSONParsing: true;
470470

471471
// throw ETIMEDOUT error instead of generic ECONNABORTED on request timeouts
472-
clarifyTimeoutError: false;
472+
clarifyTimeoutError: false,
473473
}
474474
}
475475
```

karma.conf.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ module.exports = function(config) {
127127
'Running on Travis.'
128128
);
129129
browsers = ['Firefox'];
130+
} else if (process.env.GITHUB_ACTIONS !== 'false') {
131+
console.log('Running ci on Github Actions.');
132+
browsers = ['FirefoxHeadless', 'ChromeHeadless'];
130133
} else {
131134
console.log('Running locally since SAUCE_USERNAME and SAUCE_ACCESS_KEY environment variables are not set.');
132135
browsers = ['Firefox', 'Chrome'];

0 commit comments

Comments
 (0)