From 9641045bbc1d9153e4bb190a00f6bf50056fa9b6 Mon Sep 17 00:00:00 2001 From: Tomas Della Vedova Date: Thu, 9 Apr 2020 14:08:27 +0200 Subject: [PATCH 1/2] Enable Github actions --- .github/workflows/build.yml | 47 +++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..38d9ed1 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,47 @@ +name: build + +on: [push, pull_request] + +jobs: + test: + name: Test + runs-on: ${{ matrix.os }} + + strategy: + matrix: + node-version: [10.x, 12.x, 13.x] + os: [ubuntu-latest, windows-latest, macOS-latest] + + steps: + - uses: actions/checkout@v2 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + + - name: Install + run: | + npm install + - name: Test + run: | + npm test + + coverage: + name: Coverage + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Use Node.js 12.x + uses: actions/setup-node@v1 + with: + node-version: 12.x + + - name: Install + run: | + npm install + - name: Coverage check + run: | + npm run coverage:check From d880da00c26ad9f5672b85d2afb5cf3f8d8af0e1 Mon Sep 17 00:00:00 2001 From: delvedor Date: Thu, 9 Apr 2020 14:10:52 +0200 Subject: [PATCH 2/2] Added build badge --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index aba3333..7716439 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ # Elasticsearch Node.js client mock utility -[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](http://standardjs.com/) +[![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) 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.