-
-
Notifications
You must be signed in to change notification settings - Fork 239
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into more-test-updates
- Loading branch information
Showing
32 changed files
with
1,366 additions
and
493 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
github: feross | ||
tidelift: npm/buffer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
unit: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
# see https://nodejs.org/en/about/releases/ | ||
node-version: [16.x, 18.x, 20.x] | ||
|
||
steps: | ||
- uses: actions/checkout@main | ||
- uses: actions/setup-node@main | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: npm install | ||
- run: npm test | ||
|
||
standard: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@main | ||
- uses: actions/setup-node@main | ||
with: | ||
# don't use lts/* to prevent hitting rate-limit | ||
node-version: 20.x | ||
- run: npm install | ||
- run: npm run standard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.airtap.yml | ||
.github/ | ||
bin/ | ||
perf/ | ||
test/ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,5 +44,31 @@ | |
- adventure-yunfei ([email protected]) | ||
- Emil Bay ([email protected]) | ||
- Sam Sudar ([email protected]) | ||
- Volker Mische ([email protected]) | ||
- David Walton ([email protected]) | ||
- Сковорода Никита Андреевич ([email protected]) | ||
- greenkeeper[bot] (greenkeeper[bot]@users.noreply.github.com) | ||
- ukstv ([email protected]) | ||
- Renée Kooi ([email protected]) | ||
- ranbochen ([email protected]) | ||
- Vladimir Borovik ([email protected]) | ||
- greenkeeper[bot] (23040076+greenkeeper[bot]@users.noreply.github.com) | ||
- kumavis ([email protected]) | ||
- Sergey Ukustov ([email protected]) | ||
- Fei Liu ([email protected]) | ||
- Blaine Bublitz ([email protected]) | ||
- clement ([email protected]) | ||
- Koushik Dutta ([email protected]) | ||
- Jordan Harband ([email protected]) | ||
- Niklas Mischkulnig ([email protected]) | ||
- Nikolai Vavilov ([email protected]) | ||
- Fedor Nezhivoi ([email protected]) | ||
- shuse2 ([email protected]) | ||
- Peter Newman ([email protected]) | ||
- mathmakgakpak ([email protected]) | ||
- jkkang ([email protected]) | ||
- Deklan Webster ([email protected]) | ||
- Martin Heidegger ([email protected]) | ||
- junderw ([email protected]) | ||
|
||
#### Generated by bin/update-authors.sh. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
sauce_connect: true | ||
loopback: airtap.local | ||
browsers: | ||
- name: ie | ||
version: latest | ||
- name: safari | ||
version: 9 | ||
version: 11..13 | ||
- name: iphone | ||
version: 9.3 | ||
version: 11.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,34 @@ | ||
#!/usr/bin/env node | ||
|
||
var cp = require('child_process') | ||
var fs = require('fs') | ||
var path = require('path') | ||
const cp = require('child_process') | ||
const fs = require('fs') | ||
const path = require('path') | ||
|
||
var shouldRunBrowserTests = !process.env.TRAVIS_PULL_REQUEST || | ||
process.env.TRAVIS_PULL_REQUEST === 'false' | ||
|
||
var node = cp.spawn('npm', ['run', 'test-node'], { stdio: 'inherit' }) | ||
const node = cp.spawn('npm', ['run', 'test-node'], { stdio: 'inherit' }) | ||
node.on('close', function (code) { | ||
if (code === 0 && shouldRunBrowserTests) { | ||
runBrowserTests() | ||
} else { | ||
process.exit(code) | ||
} | ||
if (code !== 0) return process.exit(code) | ||
runBrowserTests() | ||
}) | ||
|
||
function runBrowserTests () { | ||
var airtapYmlPath = path.join(__dirname, '..', '.airtap.yml') | ||
const airtapYmlPath = path.join(__dirname, '..', '.airtap.yml') | ||
|
||
writeES5AirtapYml() | ||
cp.spawn('npm', ['run', 'test-browser-es5'], { stdio: 'inherit' }) | ||
cp.spawn('npm', ['run', 'test-browser-old'], { stdio: 'inherit' }) | ||
.on('close', function (code) { | ||
if (code !== 0) process.exit(code) | ||
writeES6AirtapYml() | ||
cp.spawn('npm', ['run', 'test-browser-es6'], { stdio: 'inherit' }) | ||
cp.spawn('npm', ['run', 'test-browser-new'], { stdio: 'inherit' }) | ||
.on('close', function (code) { | ||
process.exit(code) | ||
}) | ||
}) | ||
|
||
function writeES5AirtapYml () { | ||
fs.writeFileSync(airtapYmlPath, fs.readFileSync(path.join(__dirname, 'airtap-es5.yml'))) | ||
fs.writeFileSync(airtapYmlPath, fs.readFileSync(path.join(__dirname, 'airtap-old.yml'))) | ||
} | ||
|
||
function writeES6AirtapYml () { | ||
fs.writeFileSync(airtapYmlPath, fs.readFileSync(path.join(__dirname, 'airtap-es6.yml'))) | ||
fs.writeFileSync(airtapYmlPath, fs.readFileSync(path.join(__dirname, 'airtap-new.yml'))) | ||
} | ||
} |
Oops, something went wrong.