Skip to content
This repository has been archived by the owner on Dec 1, 2024. It is now read-only.

Commit

Permalink
Move to GitHub Actions (#375)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcuslyons authored Apr 21, 2021
1 parent e9a0700 commit bfb4d78
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 31 deletions.
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ updates:
interval: monthly
ignore:
- dependency-name: dependency-check
- package-ecosystem: github-actions
directory: /
schedule:
interval: monthly
25 changes: 25 additions & 0 deletions .github/workflows/sauce.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Sauce Labs
on: push
concurrency: sauce-labs
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up node
uses: actions/setup-node@v2
with:
node-version: 14
- 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 }}
26 changes: 26 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Test
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node: [10, 12, 14]
name: Node ${{ matrix.node }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use node ${{ matrix.node }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: Install
run: npm install
- name: Test
run: npm test
- name: Coverage
run: npm run coverage
- name: Codecov
uses: codecov/codecov-action@v1
with:
file: coverage/lcov.info
27 changes: 0 additions & 27 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
[![level badge][level-badge]](https://github.com/Level/awesome)
[![npm](https://img.shields.io/npm/v/abstract-leveldown.svg?label=&logo=npm)](https://www.npmjs.com/package/abstract-leveldown)
[![Node version](https://img.shields.io/node/v/abstract-leveldown.svg)](https://www.npmjs.com/package/abstract-leveldown)
[![Travis](https://img.shields.io/travis/com/Level/abstract-leveldown.svg?logo=travis&label=)](https://travis-ci.com/Level/abstract-leveldown)
[![Coverage Status](https://coveralls.io/repos/github/Level/abstract-leveldown/badge.svg)](https://coveralls.io/github/Level/abstract-leveldown)
[![Test](https://github.com/Level/abstract-leveldown/actions/workflows/test.yml/badge.svg)](https://github.com/Level/abstract-leveldown/actions/workflows/test.yml)
[![Coverage Status](https://codecov.io/gh/Level/abstract-leveldown/branch/master/graph/badge.svg)](https://codecov.io/gh/Level/abstract-leveldown)
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
[![npm](https://img.shields.io/npm/dm/abstract-leveldown.svg?label=dl)](https://www.npmjs.com/package/abstract-leveldown)
[![Backers on Open Collective](https://opencollective.com/level/backers/badge.svg?color=orange)](#backers)
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"test": "standard && hallmark && nyc node test/self.js",
"test-browsers": "airtap --coverage test/self.js",
"test-browser-local": "airtap --coverage -p local --live test/self.js",
"coverage": "nyc report --reporter=text-lcov | coveralls",
"coverage": "nyc report -r lcovonly",
"hallmark": "hallmark --fix",
"dependency-check": "dependency-check --no-dev -i buffer -i queue-microtask . test/*.js",
"prepublishOnly": "npm run dependency-check"
Expand All @@ -26,7 +26,6 @@
"devDependencies": {
"airtap": "^4.0.3",
"airtap-sauce": "^1.1.0",
"coveralls": "^3.0.2",
"dependency-check": "^4.1.0",
"hallmark": "^3.1.0",
"level-community": "^3.0.0",
Expand Down

0 comments on commit bfb4d78

Please sign in to comment.