2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-15 11:59:42 +03:00

Adding CI on Github Actions. (#3938)

This commit is contained in:
Kohta Ito
2021-08-13 21:27:17 +09:00
committed by GitHub
parent e9965bfafc
commit 4fbeecbcb2
2 changed files with 27 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
name: ci
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
steps:
- uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- run: npm install
- run: npm test
+3
View File
@@ -127,6 +127,9 @@ module.exports = function(config) {
'Running on Travis.'
);
browsers = ['Firefox'];
} else if (process.env.GITHUB_ACTIONS !== 'false') {
console.log('Running ci on Github Actions.');
browsers = ['FirefoxHeadless', 'ChromeHeadless'];
} else {
console.log('Running locally since SAUCE_USERNAME and SAUCE_ACCESS_KEY environment variables are not set.');
browsers = ['Firefox', 'Chrome'];