Skip to content

Commit

Permalink
Replace Sauce Labs with Playwright
Browse files Browse the repository at this point in the history
  • Loading branch information
vweevers committed Oct 30, 2022
1 parent 2005331 commit e9286ec
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 124 deletions.
22 changes: 3 additions & 19 deletions .airtap.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,7 @@
providers:
- airtap-sauce
- airtap-playwright

browsers:
- name: chrome
- name: chromium
- name: firefox
# https://github.com/airtap/sauce/issues/11
# - name: safari
# version: 12..latest
- name: ios_saf
version: 12..latest
- name: chrome for android
version: 6..latest
- name: msedge

presets:
local:
providers:
- airtap-playwright
browsers:
- name: chromium
- name: firefox
- name: webkit
- name: webkit
15 changes: 4 additions & 11 deletions .github/workflows/sauce.yml → .github/workflows/browsers.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: Sauce Labs
on: push
name: Browsers
on: [push, pull_request]
permissions:
contents: read
concurrency: sauce-labs
jobs:
test:
name: Test
Expand All @@ -17,13 +16,7 @@ jobs:
node-version: 16
- name: Install
run: npm install
env:
# Download Sauce Connect binary now instead of on first run
SAUCE_CONNECT_DOWNLOAD_ON_INSTALL: true
- name: Add host
run: echo "127.0.0.1 airtap.local" | sudo tee -a /etc/hosts
- name: Install Playwright
run: npx playwright install-deps
- name: Test
run: npm run test-browsers
env:
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
10 changes: 1 addition & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,7 @@ const xyz = db.sublevel<string, any>('xyz', { valueEncoding: 'json' })

## Supported Platforms

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.

[![Sauce Test Status](https://app.saucelabs.com/browser-matrix/abstract-leveldown.svg)](https://app.saucelabs.com/u/abstract-leveldown)
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.

## Public API For Consumers

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

## Big Thanks

Cross-browser Testing Platform and Open Source ♥ Provided by [Sauce Labs](https://saucelabs.com).

[![Sauce Labs logo](./sauce-labs.svg)](https://saucelabs.com)

## Donate

Support us with a monthly donation on [Open Collective](https://opencollective.com/level) and help us continue our work.
Expand Down
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"scripts": {
"test": "standard && ts-standard *.ts types/*.ts && hallmark && (nyc -s node test/self.js | faucet) && nyc report",
"test-browsers": "airtap --coverage test/self.js",
"test-browsers-local": "airtap --coverage -p local test/self.js",
"coverage": "nyc report -r lcovonly"
},
"files": [
Expand All @@ -24,8 +23,7 @@
"test",
"types",
"CHANGELOG.md",
"UPGRADING.md",
"sauce-labs.svg"
"UPGRADING.md"
],
"dependencies": {
"buffer": "^6.0.3",
Expand All @@ -41,7 +39,6 @@
"@voxpelli/tsconfig": "^4.0.0",
"airtap": "^4.0.4",
"airtap-playwright": "^1.0.1",
"airtap-sauce": "^1.1.0",
"faucet": "^0.0.3",
"hallmark": "^4.0.0",
"nyc": "^15.1.0",
Expand Down
81 changes: 0 additions & 81 deletions sauce-labs.svg

This file was deleted.

0 comments on commit e9286ec

Please sign in to comment.