Skip to content

Commit e345c20

Browse files
authored
Merge pull request #5 from elastic/github-actions
Enable Github actions
2 parents e3530c6 + d880da0 commit e345c20

File tree

2 files changed

+48
-1
lines changed

2 files changed

+48
-1
lines changed

.github/workflows/build.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: build
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
name: Test
8+
runs-on: ${{ matrix.os }}
9+
10+
strategy:
11+
matrix:
12+
node-version: [10.x, 12.x, 13.x]
13+
os: [ubuntu-latest, windows-latest, macOS-latest]
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
18+
- name: Use Node.js ${{ matrix.node-version }}
19+
uses: actions/setup-node@v1
20+
with:
21+
node-version: ${{ matrix.node-version }}
22+
23+
- name: Install
24+
run: |
25+
npm install
26+
- name: Test
27+
run: |
28+
npm test
29+
30+
coverage:
31+
name: Coverage
32+
runs-on: ubuntu-latest
33+
34+
steps:
35+
- uses: actions/checkout@v2
36+
37+
- name: Use Node.js 12.x
38+
uses: actions/setup-node@v1
39+
with:
40+
node-version: 12.x
41+
42+
- name: Install
43+
run: |
44+
npm install
45+
- name: Coverage check
46+
run: |
47+
npm run coverage:check

README.md

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

33
# Elasticsearch Node.js client mock utility
44

5-
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](http://standardjs.com/)
5+
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](http://standardjs.com/) ![build](https://github.com/elastic/elasticsearch-js-mock/workflows/build/badge.svg)
66

77
When testing your application you don't always need to have an Elasticsearch instance up and running, but you might still need to use the client for fetching some data. If you are facing this situation, this library is what you need.
88

0 commit comments

Comments
 (0)