From 90b88162553ed4442319c5e25a372c43cc21b4eb Mon Sep 17 00:00:00 2001 From: Vincent Weevers Date: Sun, 13 Mar 2022 11:58:59 +0100 Subject: [PATCH] Restore Sauce Labs browser tests Reusing the abstract-leveldown account for now. --- .airtap.yml | 1 - .github/workflows/sauce.yml | 29 +++++++++++++++++++++++++++++ README.md | 8 +------- 3 files changed, 30 insertions(+), 8 deletions(-) create mode 100644 .github/workflows/sauce.yml diff --git a/.airtap.yml b/.airtap.yml index f9ac8f5..b28bb6c 100644 --- a/.airtap.yml +++ b/.airtap.yml @@ -1,6 +1,5 @@ providers: - airtap-sauce - - airtap-default browsers: - name: chrome diff --git a/.github/workflows/sauce.yml b/.github/workflows/sauce.yml new file mode 100644 index 0000000..0147786 --- /dev/null +++ b/.github/workflows/sauce.yml @@ -0,0 +1,29 @@ +name: Sauce Labs +on: push +permissions: + contents: read +concurrency: sauce-labs +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 + 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: Test + run: npm run test-browsers + env: + SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }} + SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }} diff --git a/README.md b/README.md index dd2ac38..c7c4966 100644 --- a/README.md +++ b/README.md @@ -189,13 +189,9 @@ const xyz = db.sublevel('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. - - ## Public API For Consumers @@ -1402,13 +1398,11 @@ npm install abstract-level See the [Contribution Guide](https://github.com/Level/community/blob/master/CONTRIBUTING.md) for more details. - ## Donate