Skip to content

Commit 5edfd80

Browse files
authored
Merge pull request ethereumjs#138 from ethereumjs/github-actions
Add github actions
2 parents 0cf409e + 43b9059 commit 5edfd80

File tree

4 files changed

+55
-1
lines changed

4 files changed

+55
-1
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: blockchain-coverage
2+
on: [push]
3+
jobs:
4+
coverage:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/setup-node@v1
8+
with:
9+
node-version: 12.x
10+
11+
- uses: actions/checkout@v1
12+
- run: npm install
13+
- run: npm run coverage
14+
- run: npm run coveralls
15+
16+
- name: Post coverage data to coveralls.io for analysis
17+
uses: coverallsapp/github-action@master
18+
with:
19+
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/blockchain-lint.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: blockchain-lint
2+
on: [push]
3+
jobs:
4+
lint:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/setup-node@v1
8+
with:
9+
node-version: 12.x
10+
11+
- uses: actions/checkout@v1
12+
- run: npm install
13+
- run: npm run lint
14+
env:
15+
CI: true

.github/workflows/blockchain-test.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: blockchain-test
2+
on: [push]
3+
jobs:
4+
test:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
matrix:
8+
node-version: [8.x, 10.x, 12.x, 13.x]
9+
10+
steps:
11+
- name: Use Node.js ${{ matrix.node-version }}
12+
uses: actions/setup-node@v1
13+
with:
14+
node-version: ${{ matrix.node-version }}
15+
16+
- uses: actions/checkout@v1
17+
- run: npm install
18+
- run: npm test
19+
env:
20+
CI: true

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SYNOPSIS
22

33
[![NPM Package](https://img.shields.io/npm/v/ethereumjs-blockchain.svg?style=flat-square)](https://www.npmjs.org/package/ethereumjs-blockchain)
4-
[![Build Status](https://travis-ci.org/ethereumjs/ethereumjs-blockchain.svg?branch=master)](https://travis-ci.org/ethereumjs/ethereumjs-blockchain)
4+
[![Actions Status](https://github.com/ethereumjs/ethereumjs-blockchain/workflows/blockchain-test/badge.svg)](https://github.com/ethereumjs/ethereumjs-blockchain/actions)
55
[![Coverage Status](https://img.shields.io/coveralls/ethereumjs/ethereumjs-blockchain.svg?style=flat-square)](https://coveralls.io/r/ethereumjs/ethereumjs-blockchain)
66
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/ethereum/ethereumjs-lib?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) or #ethereumjs on freenode
77

0 commit comments

Comments
 (0)