Skip to content

Commit a29b2f8

Browse files
committed
fix: tests
1 parent 15ece8e commit a29b2f8

File tree

5 files changed

+5691
-20
lines changed

5 files changed

+5691
-20
lines changed

.airtap.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
1-
sauce_connect: true
21
browsers:
32
- name: chrome
43
version: latest
54
- name: firefox
65
version: latest
7-
- name: safari
6+
# https://github.com/airtap/sauce/issues/11
7+
# - name: safari
8+
# version: latest
9+
- name: edge
810
version: latest
9-
- name: microsoftedge
11+
- name: and_chr
1012
version: latest
11-
- name: iphone
12-
version: latest
13-
- name: android
13+
- name: ios_saf
1414
version: latest
15+
providers:
16+
- airtap-system
1517
presets:
1618
local:
1719
providers: airtap-manual
@@ -21,4 +23,4 @@ browserify:
2123
- transform: babelify
2224
global: true
2325
presets: ['@babel/preset-env']
24-
plugins: ['@babel/plugin-syntax-import-assertions']
26+
plugins: ['@babel/plugin-syntax-import-assertions']

.github/workflows/ci.yml

Lines changed: 32 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,49 @@
11
name: ci
2-
'on':
3-
- push
4-
- pull_request
2+
on:
3+
push:
4+
branches:
5+
- master
6+
tags-ignore:
7+
- '*'
8+
pull_request:
9+
branches:
10+
- master
11+
concurrency:
12+
group: ${{ github.ref }}
13+
cancel-in-progress: true
514
jobs:
615
test:
716
name: Node ${{ matrix.node }} / ${{ matrix.os }}
817
runs-on: ${{ matrix.os }}
9-
environment: ci
1018
strategy:
1119
fail-fast: false
1220
matrix:
1321
os:
1422
- ubuntu-latest
1523
node:
16-
- '14'
24+
- '18'
25+
- '16'
1726
steps:
18-
- uses: actions/checkout@v2
19-
- uses: actions/setup-node@v2
27+
- name: Install Setuptools for Python
28+
run: pip3 install setuptools
29+
30+
- name: Check out Git repository
31+
uses: actions/checkout@v3
32+
33+
- name: Setup PNPM
34+
uses: pnpm/action-setup@v2.2.2
35+
with:
36+
version: 8.6.3
37+
38+
- name: Setup Node
39+
uses: actions/setup-node@v3
2040
with:
2141
node-version: ${{ matrix.node }}
22-
- run: npm install
23-
- run: npm run build --if-present
42+
cache: 'pnpm'
43+
44+
- run: pnpm install --frozen-lockfile
2445
- run: echo "127.0.0.1 airtap.local" | sudo tee -a /etc/hosts
25-
- run: npm test
46+
- run: pnpm test
2647
env:
2748
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
28-
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
49+
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
.nyc_output
22
node_modules
33
package-lock.json
4-
pnpm-lock.yaml

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,14 @@
2828
"@babel/preset-env": "^7.20.2",
2929
"airtap": "^4.0.4",
3030
"airtap-manual": "^1.0.0",
31+
"airtap-system": "^0.1.0",
3132
"babelify": "^10.0.0",
3233
"bowser": "^2.11.0",
3334
"cross-env": "^7.0.3",
3435
"prettier-bytes": "^1.0.4",
3536
"speedometer": "^1.1.0",
3637
"string-to-stream": "^3.0.1",
38+
"tap-spec": "^5.0.0",
3739
"tape": "^5.5.2",
3840
"thunky": "^1.1.0",
3941
"ws": "^7.5.3"
@@ -61,7 +63,8 @@
6163
},
6264
"scripts": {
6365
"test": "npm run test-node && npm run test-browser",
64-
"test-browser-local": "airtap --preset local -- test/*.js",
66+
"test-browser": "airtap --concurrency 1 --all -- test/*.js test/browser/*.js | tap-spec",
67+
"test-browser-local": "airtap --preset local -- test/*.js | tap-spec",
6568
"test-node": "tape test/*.js",
6669
"test-node-debug": "cross-env DEBUG=* tape test/negotiation.js"
6770
},

0 commit comments

Comments
 (0)