Skip to content

Commit

Permalink
Stop using Sauce Labs
Browse files Browse the repository at this point in the history
And bump airtap from 4 to 5 to get tests working again.

Ref: Level/community#117
Category: none
  • Loading branch information
vweevers committed Nov 17, 2024
1 parent ff04bc6 commit 21b0b2f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 126 deletions.
19 changes: 2 additions & 17 deletions .airtap.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,6 @@
providers:
- airtap-sauce
- airtap-playwright

browsers:
- name: chrome
- name: chromium
- name: firefox
- 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
15 changes: 3 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,18 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use node 16
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 16
node-version: lts/*
- name: Install
run: npm install
env:
# Download Sauce Connect binary now instead of on first run
SAUCE_CONNECT_DOWNLOAD_ON_INSTALL: true
run: npm install --ignore-scripts
- 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 test
# TODO
# - name: Test
# run: npm run test-browsers
# env:
# SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
# SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
- name: Coverage
run: npm run coverage
- name: Codecov
Expand Down
10 changes: 0 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ for await (const [key, value] of db.iterator({ gt: 'a' })) {
}
```

<!-- ## Browser Support -->

<!-- [![Sauce Test Status](https://app.saucelabs.com/browser-matrix/level-js.svg)](https://app.saucelabs.com/u/level-js) -->

## API

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.
Expand Down Expand Up @@ -118,12 +114,6 @@ npm install browser-level

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

<!-- ## 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) -->

## Contributing

[`Level/browser-level`](https://github.com/Level/browser-level) is an **OPEN Open Source Project**. This means that:
Expand Down
9 changes: 3 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
"main": "index.js",
"types": "./index.d.ts",
"scripts": {
"test": "standard && hallmark && airtap -p local --coverage test/index.js && nyc report",
"test-browsers": "standard && airtap --coverage test/index.js",
"test": "standard && hallmark && airtap --coverage test/index.js && nyc report",
"coverage": "nyc report -r lcovonly",
"dependency-check": "dependency-check --no-dev .",
"prepublishOnly": "npm run dependency-check"
Expand All @@ -19,8 +18,7 @@
"iterator.js",
"util",
"CHANGELOG.md",
"UPGRADING.md",
"sauce-labs.svg"
"UPGRADING.md"
],
"dependencies": {
"abstract-level": "^1.0.2",
Expand All @@ -30,9 +28,8 @@
},
"devDependencies": {
"@voxpelli/tsconfig": "^4.0.0",
"airtap": "^4.0.4",
"airtap": "^5.0.0",
"airtap-playwright": "^1.0.1",
"airtap-sauce": "^1.1.0",
"dependency-check": "^4.1.0",
"hallmark": "^4.1.0",
"nyc": "^15.0.0",
Expand Down
81 changes: 0 additions & 81 deletions sauce-labs.svg

This file was deleted.

0 comments on commit 21b0b2f

Please sign in to comment.