Skip to content

Commit 06fee3a

Browse files
committed
Stop using Sauce Labs
And bump airtap from 4 to 5 to get tests working again. Ref: Level/community#117 Category: none
1 parent ff04bc6 commit 06fee3a

File tree

5 files changed

+11
-127
lines changed

5 files changed

+11
-127
lines changed

.airtap.yml

+2-17
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,6 @@
11
providers:
2-
- airtap-sauce
2+
- airtap-playwright
33

44
browsers:
5-
- name: chrome
5+
- name: chromium
66
- name: firefox
7-
- name: safari
8-
version: 12..latest
9-
- name: ios_saf
10-
version: 12..latest
11-
- name: chrome for android
12-
version: 6..latest
13-
- name: msedge
14-
15-
presets:
16-
local:
17-
providers:
18-
- airtap-playwright
19-
browsers:
20-
- name: chromium
21-
- name: firefox

.github/workflows/test.yml

+6-13
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,20 @@ jobs:
1010
steps:
1111
- name: Checkout
1212
uses: actions/checkout@v3
13-
- name: Use node 16
13+
- name: Setup Node.js
1414
uses: actions/setup-node@v4
1515
with:
16-
node-version: 16
16+
node-version: lts/*
1717
- name: Install
18-
run: npm install
19-
env:
20-
# Download Sauce Connect binary now instead of on first run
21-
SAUCE_CONNECT_DOWNLOAD_ON_INSTALL: true
18+
run: npm install --ignore-scripts
2219
- name: Add host
2320
run: echo "127.0.0.1 airtap.local" | sudo tee -a /etc/hosts
21+
- name: Install Playwright dependencies
22+
run: npx --no-install playwright install-deps
2423
- name: Install Playwright
25-
run: npx playwright install-deps
24+
run: npx --no-install playwright install
2625
- name: Test
2726
run: npm test
28-
# TODO
29-
# - name: Test
30-
# run: npm run test-browsers
31-
# env:
32-
# SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
33-
# SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
3427
- name: Coverage
3528
run: npm run coverage
3629
- name: Codecov

README.md

-10
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@ for await (const [key, value] of db.iterator({ gt: 'a' })) {
5050
}
5151
```
5252

53-
<!-- ## Browser Support -->
54-
55-
<!-- [![Sauce Test Status](https://app.saucelabs.com/browser-matrix/level-js.svg)](https://app.saucelabs.com/u/level-js) -->
56-
5753
## API
5854

5955
The API of `browser-level` follows that of [`abstract-level`](https://github.com/Level/abstract-level) with just two additional constructor options (see below) and one additional method (see below). As such, the majority of the API is documented in `abstract-level`. The `createIfMissing` and `errorIfExists` options of `abstract-level` are not supported here.
@@ -118,12 +114,6 @@ npm install browser-level
118114

119115
This module is best used with [`browserify`](http://browserify.org) or similar bundlers.
120116

121-
<!-- ## Big Thanks
122-
123-
Cross-browser Testing Platform and Open Source ♥ Provided by [Sauce Labs](https://saucelabs.com).
124-
125-
[![Sauce Labs logo](./sauce-labs.svg)](https://saucelabs.com) -->
126-
127117
## Contributing
128118

129119
[`Level/browser-level`](https://github.com/Level/browser-level) is an **OPEN Open Source Project**. This means that:

package.json

+3-6
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
"main": "index.js",
88
"types": "./index.d.ts",
99
"scripts": {
10-
"test": "standard && hallmark && airtap -p local --coverage test/index.js && nyc report",
11-
"test-browsers": "standard && airtap --coverage test/index.js",
10+
"test": "standard && hallmark && airtap --coverage test/index.js && nyc report",
1211
"coverage": "nyc report -r lcovonly",
1312
"dependency-check": "dependency-check --no-dev .",
1413
"prepublishOnly": "npm run dependency-check"
@@ -19,8 +18,7 @@
1918
"iterator.js",
2019
"util",
2120
"CHANGELOG.md",
22-
"UPGRADING.md",
23-
"sauce-labs.svg"
21+
"UPGRADING.md"
2422
],
2523
"dependencies": {
2624
"abstract-level": "^1.0.2",
@@ -30,9 +28,8 @@
3028
},
3129
"devDependencies": {
3230
"@voxpelli/tsconfig": "^4.0.0",
33-
"airtap": "^4.0.4",
31+
"airtap": "^5.0.0",
3432
"airtap-playwright": "^1.0.1",
35-
"airtap-sauce": "^1.1.0",
3633
"dependency-check": "^4.1.0",
3734
"hallmark": "^4.1.0",
3835
"nyc": "^15.0.0",

sauce-labs.svg

-81
This file was deleted.

0 commit comments

Comments
 (0)