Skip to content

Commit

Permalink
Move to GitHub Actions (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcuslyons authored Apr 21, 2021
1 parent 2d0a97f commit adfc39d
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 21 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
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
yarn.lock
.nyc_output/
coverage
17 changes: 0 additions & 17 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,9 +5,9 @@
[![level badge][level-badge]](https://github.com/Level/awesome)
[![npm](https://img.shields.io/npm/v/level.svg?label=&logo=npm)](https://www.npmjs.com/package/level)
[![Node version](https://img.shields.io/node/v/level.svg)](https://www.npmjs.com/package/level)
[![Travis](https://img.shields.io/travis/com/Level/level.svg?logo=travis&label=)](https://travis-ci.com/Level/level)
[![AppVeyor](https://img.shields.io/appveyor/ci/Level/level.svg?logo=appveyor&label=)](https://ci.appveyor.com/project/Level/level)
[![Coverage Status](https://coveralls.io/repos/github/Level/level/badge.svg)](https://coveralls.io/github/Level/level)
[![Test](https://github.com/Level/level/actions/workflows/test.yml/badge.svg)](https://github.com/Level/level/actions/workflows/test.yml)
[![Coverage Status](https://codecov.io/gh/Level/level/branch/master/graph/badge.svg)](https://codecov.io/gh/Level/level)
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
[![npm](https://img.shields.io/npm/dm/level.svg?label=dl)](https://www.npmjs.com/package/level)
[![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 @@ -7,7 +7,7 @@
"scripts": {
"test": "standard && nyc node test.js",
"test-browsers-local": "airtap --verbose test-browser.js",
"coverage": "nyc report --reporter=text-lcov | coveralls",
"coverage": "nyc report -r lcovonly",
"hallmark": "hallmark --fix",
"dependency-check": "dependency-check --no-dev . browser.js",
"prepublishOnly": "npm run dependency-check"
Expand All @@ -29,7 +29,6 @@
"devDependencies": {
"airtap": "^4.0.1",
"airtap-playwright": "^1.0.1",
"coveralls": "^3.0.2",
"dependency-check": "^4.1.0",
"hallmark": "^3.0.0",
"level-community": "^3.0.0",
Expand Down

0 comments on commit adfc39d

Please sign in to comment.