From 06fee3a5a178b46f9a272f26386707c5eeee6c15 Mon Sep 17 00:00:00 2001 From: Vincent Weevers Date: Sun, 17 Nov 2024 15:03:15 +0100 Subject: [PATCH] Stop using Sauce Labs And bump airtap from 4 to 5 to get tests working again. Ref: https://github.com/Level/community/issues/117 Category: none --- .airtap.yml | 19 +-------- .github/workflows/test.yml | 19 +++------ README.md | 10 ----- package.json | 9 ++--- sauce-labs.svg | 81 -------------------------------------- 5 files changed, 11 insertions(+), 127 deletions(-) delete mode 100644 sauce-labs.svg diff --git a/.airtap.yml b/.airtap.yml index 99aa2fb..99fede6 100644 --- a/.airtap.yml +++ b/.airtap.yml @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6275247..5119eb9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,27 +10,20 @@ 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 dependencies + run: npx --no-install playwright install-deps - name: Install Playwright - run: npx playwright install-deps + run: npx --no-install playwright install - 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 diff --git a/README.md b/README.md index 13d7195..59c83a4 100644 --- a/README.md +++ b/README.md @@ -50,10 +50,6 @@ for await (const [key, value] of db.iterator({ gt: 'a' })) { } ``` - - - - ## 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. @@ -118,12 +114,6 @@ npm install browser-level This module is best used with [`browserify`](http://browserify.org) or similar bundlers. - - ## Contributing [`Level/browser-level`](https://github.com/Level/browser-level) is an **OPEN Open Source Project**. This means that: diff --git a/package.json b/package.json index b3ceab5..f65a165 100644 --- a/package.json +++ b/package.json @@ -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" @@ -19,8 +18,7 @@ "iterator.js", "util", "CHANGELOG.md", - "UPGRADING.md", - "sauce-labs.svg" + "UPGRADING.md" ], "dependencies": { "abstract-level": "^1.0.2", @@ -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", diff --git a/sauce-labs.svg b/sauce-labs.svg deleted file mode 100644 index 574cf16..0000000 --- a/sauce-labs.svg +++ /dev/null @@ -1,81 +0,0 @@ - - - - - Sauce Labs - - - - - - - - - - - - - - - -