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 a08e509
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 143 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
22 changes: 22 additions & 0 deletions .github/workflows/browsers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Browsers
on: [push, pull_request]
permissions:
contents: read
jobs:
test:
name: Test
if: ${{ github.actor != 'dependabot[bot]' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up node
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install
run: npm install --ignore-scripts
- name: Install Playwright
run: npx playwright install-deps
- name: Test
run: npm run test-browsers
29 changes: 0 additions & 29 deletions .github/workflows/sauce.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
with:
node-version: ${{ matrix.node }}
- name: Install
run: npm install
run: npm install --ignore-scripts
- name: Test
run: npm test
- name: Coverage
Expand Down
11 changes: 2 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
[![npm](https://img.shields.io/npm/v/abstract-level.svg)](https://www.npmjs.com/package/abstract-level)
[![Node version](https://img.shields.io/node/v/abstract-level.svg)](https://www.npmjs.com/package/abstract-level)
[![Test](https://img.shields.io/github/workflow/status/Level/abstract-level/Test?label=test)](https://github.com/Level/abstract-level/actions/workflows/test.yml)
[![Browsers](https://img.shields.io/github/workflow/status/Level/abstract-level/Browsers?label=browsers)](https://github.com/Level/abstract-level/actions/workflows/browsers.yml)
[![Coverage](https://img.shields.io/codecov/c/github/Level/abstract-level?label=\&logo=codecov\&logoColor=fff)](https://codecov.io/gh/Level/abstract-level)
[![Standard](https://img.shields.io/badge/standard-informational?logo=javascript\&logoColor=fff)](https://standardjs.com)
[![Common Changelog](https://common-changelog.org/badge.svg)](https://common-changelog.org)
Expand Down Expand Up @@ -194,9 +195,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 +1425,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 a08e509

Please sign in to comment.