Skip to content

Commit 18409b7

Browse files
authored
Replace Sauce Labs with Playwright (#44)
Ref Level/community#117
1 parent 2005331 commit 18409b7

File tree

7 files changed

+31
-143
lines changed

7 files changed

+31
-143
lines changed

.airtap.yml

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,7 @@
11
providers:
2-
- airtap-sauce
2+
- airtap-playwright
33

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

.github/workflows/browsers.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Browsers
2+
on: [push, pull_request]
3+
permissions:
4+
contents: read
5+
jobs:
6+
test:
7+
name: Test
8+
if: ${{ github.actor != 'dependabot[bot]' }}
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v3
13+
- name: Set up node
14+
uses: actions/setup-node@v3
15+
with:
16+
node-version: 16
17+
- name: Install
18+
run: npm install --ignore-scripts
19+
- name: Install Playwright dependencies
20+
run: npx --no-install playwright install-deps
21+
- name: Install Playwright
22+
run: npx --no-install playwright install
23+
- name: Test
24+
run: npm run test-browsers

.github/workflows/sauce.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
with:
1616
node-version: ${{ matrix.node }}
1717
- name: Install
18-
run: npm install
18+
run: npm install --ignore-scripts
1919
- name: Test
2020
run: npm test
2121
- name: Coverage

README.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
[![npm](https://img.shields.io/npm/v/abstract-level.svg)](https://www.npmjs.com/package/abstract-level)
99
[![Node version](https://img.shields.io/node/v/abstract-level.svg)](https://www.npmjs.com/package/abstract-level)
1010
[![Test](https://img.shields.io/github/workflow/status/Level/abstract-level/Test?label=test)](https://github.com/Level/abstract-level/actions/workflows/test.yml)
11+
[![Browsers](https://img.shields.io/github/workflow/status/Level/abstract-level/Browsers?label=browsers)](https://github.com/Level/abstract-level/actions/workflows/browsers.yml)
1112
[![Coverage](https://img.shields.io/codecov/c/github/Level/abstract-level?label=\&logo=codecov\&logoColor=fff)](https://codecov.io/gh/Level/abstract-level)
1213
[![Standard](https://img.shields.io/badge/standard-informational?logo=javascript\&logoColor=fff)](https://standardjs.com)
1314
[![Common Changelog](https://common-changelog.org/badge.svg)](https://common-changelog.org)
@@ -194,9 +195,7 @@ const xyz = db.sublevel<string, any>('xyz', { valueEncoding: 'json' })
194195

195196
## Supported Platforms
196197

197-
We aim to support Active LTS and Current Node.js releases as well as browsers. Supported runtime environments may differ per implementation. As far as `abstract-level` goes, the following browsers are supported and continuously tested.
198-
199-
[![Sauce Test Status](https://app.saucelabs.com/browser-matrix/abstract-leveldown.svg)](https://app.saucelabs.com/u/abstract-leveldown)
198+
We aim to support Active LTS and Current Node.js releases, as well as evergreen browsers that are based on Chromium, Firefox or Webkit. Supported runtime environments may differ per implementation.
200199

201200
## Public API For Consumers
202201

@@ -1426,12 +1425,6 @@ npm install abstract-level
14261425
14271426
See the [Contribution Guide](https://github.com/Level/community/blob/master/CONTRIBUTING.md) for more details.
14281427

1429-
## Big Thanks
1430-
1431-
Cross-browser Testing Platform and Open Source ♥ Provided by [Sauce Labs](https://saucelabs.com).
1432-
1433-
[![Sauce Labs logo](./sauce-labs.svg)](https://saucelabs.com)
1434-
14351428
## Donate
14361429

14371430
Support us with a monthly donation on [Open Collective](https://opencollective.com/level) and help us continue our work.

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"scripts": {
1212
"test": "standard && ts-standard *.ts types/*.ts && hallmark && (nyc -s node test/self.js | faucet) && nyc report",
1313
"test-browsers": "airtap --coverage test/self.js",
14-
"test-browsers-local": "airtap --coverage -p local test/self.js",
1514
"coverage": "nyc report -r lcovonly"
1615
},
1716
"files": [
@@ -24,8 +23,7 @@
2423
"test",
2524
"types",
2625
"CHANGELOG.md",
27-
"UPGRADING.md",
28-
"sauce-labs.svg"
26+
"UPGRADING.md"
2927
],
3028
"dependencies": {
3129
"buffer": "^6.0.3",
@@ -41,7 +39,6 @@
4139
"@voxpelli/tsconfig": "^4.0.0",
4240
"airtap": "^4.0.4",
4341
"airtap-playwright": "^1.0.1",
44-
"airtap-sauce": "^1.1.0",
4542
"faucet": "^0.0.3",
4643
"hallmark": "^4.0.0",
4744
"nyc": "^15.1.0",

sauce-labs.svg

Lines changed: 0 additions & 81 deletions
This file was deleted.

0 commit comments

Comments
 (0)