Skip to content
This repository has been archived by the owner on Apr 6, 2020. It is now read-only.

Commit

Permalink
add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanio committed Dec 10, 2019
1 parent c36a07c commit 02dbbf6
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/common-coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: common-coverage
on: [push]
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v1
with:
node-version: 12.x

- uses: actions/checkout@v1
- run: npm install
- run: npm run coverage
- run: npm run coveralls

- name: Post coverage data to coveralls.io for analysis
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
15 changes: 15 additions & 0 deletions .github/workflows/common-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: common-lint
on: [push]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v1
with:
node-version: 12.x

- uses: actions/checkout@v1
- run: npm install
- run: npm run lint
env:
CI: true
20 changes: 20 additions & 0 deletions .github/workflows/common-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: common-test
on: [push]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [8.x, 10.x, 12.x, 13.x]

steps:
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- uses: actions/checkout@v1
- run: npm install
- run: npm test
env:
CI: true
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# SYNOPSIS

[![Build Status](https://travis-ci.org/ethereumjs/ethereumjs-common.svg?branch=master)](https://travis-ci.org/ethereumjs/ethereumjs-common)
[![Actions Status](https://github.com/ethereumjs/ethereumjs-common/workflows/common-test/badge.svg)](https://github.com/ethereumjs/ethereumjs-common/actions)
[![Coverage Status](https://img.shields.io/coveralls/ethereumjs/ethereumjs-common.svg?style=flat-square)](https://coveralls.io/r/ethereumjs/ethereumjs-common)
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
[![Gitter](https://img.shields.io/gitter/room/ethereum/ethereumjs.svg?style=flat-square)]()
Expand Down

0 comments on commit 02dbbf6

Please sign in to comment.